]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix GetSortedWalFiles when log recycling enabled
authorAndrew Kryczka <andrewkr@fb.com>
Thu, 15 Sep 2016 16:55:02 +0000 (09:55 -0700)
committerAndrew Kryczka <andrewkr@fb.com>
Fri, 16 Sep 2016 01:03:24 +0000 (18:03 -0700)
commitc743289d810dd239ce69a6ddf6a4db75615013bf
tree39c81ee2cb7100eb842283ec250dae6a92a29b0c
parent2be165b29115cfec336f5b26a098d3f041be6a8f
Fix GetSortedWalFiles when log recycling enabled

Summary:
Previously the sequence number was mistakenly passed in an argument
where the log number should go. This caused the reader to assume the old WAL
format was used, which is incompatible with the WAL recycling format.

Test Plan:
new unit test, verified it fails before this change and passes
afterwards.

Reviewers: yiwu, lightmark, IslamAbdelRahman, sdong

Reviewed By: sdong

Subscribers: andrewkr, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D63987
db/db_wal_test.cc
db/wal_manager.cc
db/wal_manager.h
db/wal_manager_test.cc