]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix a few bugs in best-efforts recovery (#6824)
authorYanqin Jin <yanqin@fb.com>
Fri, 8 May 2020 19:59:02 +0000 (12:59 -0700)
committerYanqin Jin <yanqin@fb.com>
Fri, 8 May 2020 21:14:20 +0000 (14:14 -0700)
commitbfc1b7acf0305958da878ff8641dc73fdf58f1d5
tree73974c8c2e44bc6194e1a615811c14989a2edd3c
parente0fcbf93d043f4cb35722328536f0d98de6e930b
Fix a few bugs in best-efforts recovery (#6824)

Summary:
1. Update column_family_memtables_ to point to latest column_family_set in
   version_set after recovery.
2. Normalize file paths passed by application so that directories end with '/'
   or '\\'.
3. In addition to missing files, corrupted files are also ignored in
   best-efforts recovery.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6824

Test Plan: COMPILE_WITH_ASAN=1 make check

Reviewed By: anand1976

Differential Revision: D21463905

Pulled By: riversand963

fbshipit-source-id: c48db8843cc93c8c1c7139c474b64e6f775307d2
HISTORY.md
db/db_basic_test.cc
db/db_impl/db_impl_files.cc
db/db_impl/db_impl_open.cc
db/version_edit_handler.cc