diff --git a/db/write_batch.cc b/db/write_batch.cc index 078d9e6c6..9546ae053 100644 --- a/db/write_batch.cc +++ b/db/write_batch.cc @@ -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(); }