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
main
Aaron Gao 8 years ago committed by Facebook Github Bot
parent 1ca5f6d132
commit b39b2ee12f
  1. 2
      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();
}

Loading…
Cancel
Save