Skip to content

Commit

Permalink
Revert wait for flush before GC (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwu-arbug authored and sre-bot committed Nov 4, 2019
1 parent e8bc925 commit d4cb98c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/db_impl_gc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@ Status TitanDBImpl::BackgroundGC(LogBuffer* log_buffer,
// Nothing to do
ROCKS_LOG_BUFFER(log_buffer, "Titan GC nothing to do");
} else {
{
mutex_.Unlock();
auto* cfd = reinterpret_cast<ColumnFamilyHandleImpl*>(cfh.get())->cfd();
db_impl_->WaitForFlushMemTable(cfd);
mutex_.Lock();
}
BlobGCJob blob_gc_job(blob_gc.get(), db_, &mutex_, db_options_, env_,
env_options_, blob_manager_.get(),
blob_file_set_.get(), log_buffer, &shuting_down_,
Expand Down

0 comments on commit d4cb98c

Please sign in to comment.