Yanqin Jin b7bab48099 Fix a bug of overwriting return code (#6989)
Summary:
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
2020-06-16 12:59:35 -07:00
..
2020-06-15 10:47:02 -07:00
2020-06-15 10:47:02 -07:00
2020-05-28 10:40:03 -07:00
2020-06-15 10:47:02 -07:00
2020-05-28 10:40:03 -07:00
2020-05-28 10:40:03 -07:00
2020-04-20 11:39:31 -07:00
2020-05-28 10:40:03 -07:00
2020-03-02 16:01:00 -08:00
2020-05-28 10:40:03 -07:00