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:
Aaron Gao 2016-11-10 11:10:23 -08:00 committed by Facebook Github Bot
parent 1ca5f6d132
commit b39b2ee12f

View File

@ -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();
}