• Yanqin Jin's avatar
    Fix a bug of overwriting return code (#6989) · a818699f
    Yanqin Jin 创作于
    In best-efforts recovery, an error that is not Corruption or IOError::kNotFound or IOError::kPathNotFound will be overwritten silently. Fix this by checking all non-ok cases and return early.
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/6989
    Test Plan: make check
    Reviewed By: ajkr
    Differential Revision: D22071418
    Pulled By: riversand963
    fbshipit-source-id: 5a4ea5dfb1a41f41c7a3fdaf62b163007b42f04b