mirror of https://github.com/facebook/rocksdb.git
do not call get() in recovery mode
Summary: This is a previous fix that has a typo Closes https://github.com/facebook/rocksdb/pull/1487 Differential Revision: D4157381 Pulled By: lightmark fbshipit-source-id: f079be8
This commit is contained in:
parent
1ca5f6d132
commit
b39b2ee12f
|
@ -886,7 +886,7 @@ class MemTableInserter : public WriteBatch::Handler {
|
|||
|
||||
auto cf_handle = cf_mems_->GetColumnFamilyHandle();
|
||||
Status s = Status::NotSupported();
|
||||
if (db_ != nullptr && recovering_log_number_ != 0) {
|
||||
if (db_ != nullptr && recovering_log_number_ == 0) {
|
||||
if (cf_handle == nullptr) {
|
||||
cf_handle = db_->DefaultColumnFamily();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue