From b39b2ee12f302021fdfb69051204128482caf638 Mon Sep 17 00:00:00 2001 From: Aaron Gao Date: Thu, 10 Nov 2016 11:10:23 -0800 Subject: [PATCH] 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 --- db/write_batch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }