]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix recovery for WALs without data for all CFs
authorAndrew Kryczka <andrewkr@fb.com>
Thu, 15 Sep 2016 18:40:48 +0000 (11:40 -0700)
committerAndrew Kryczka <andrewkr@fb.com>
Fri, 16 Sep 2016 01:03:33 +0000 (18:03 -0700)
commitfbd1c982556c989fb78e66a94d3387880e2b37da
treecbf892995d4c03e663ed9ab5e02e62a1580b8404
parentc743289d810dd239ce69a6ddf6a4db75615013bf
Fix recovery for WALs without data for all CFs

Summary:
if one or more CFs had no data in the WAL, the log number that's used
by FindObsoleteFiles() wasn't updated. We need to treat this case the same as
if the data for that WAL had been flushed.

Test Plan: new unit test

Reviewers: IslamAbdelRahman, yiwu, sdong

Reviewed By: sdong

Subscribers: andrewkr, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D63963
db/db_impl.cc
db/db_wal_test.cc