Merge branch 'master' into columnfamilies

main
Igor Canadi 11 years ago
commit 6a404de4ba
  1. 2
      db/db_impl.cc

@ -2673,10 +2673,12 @@ static void CleanupIteratorState(void* arg1, void* arg2) {
DBImpl::DeletionState deletion_state(state->db->GetOptions().
max_write_buffer_number);
state->mu->Lock();
if (state->mem) { // not set for immutable iterator
MemTable* m = state->mem->Unref();
if (m != nullptr) {
deletion_state.memtables_to_free.push_back(m);
}
}
if (state->version) { // not set for memtable-only iterator
state->version->Unref();
}

Loading…
Cancel
Save