Skip to content

Commit

Permalink
do not call get() in recovery mode
Browse files Browse the repository at this point in the history
Summary:
This is a previous fix that has a typo
Closes facebook#1487

Differential Revision: D4157381

Pulled By: lightmark

fbshipit-source-id: f079be8
  • Loading branch information
lightmark authored and Facebook Github Bot committed Nov 10, 2016
1 parent 1ca5f6d commit b39b2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/write_batch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b39b2ee

Please sign in to comment.