diff --git a/db/db_impl/db_impl_compaction_flush.cc b/db/db_impl/db_impl_compaction_flush.cc index f84588276..d14b67876 100644 --- a/db/db_impl/db_impl_compaction_flush.cc +++ b/db/db_impl/db_impl_compaction_flush.cc @@ -2200,7 +2200,7 @@ Status DBImpl::FlushMemTable(ColumnFamilyData* cfd, FlushRequest req{{cfd_stats, flush_memtable_id}}; flush_reqs.emplace_back(std::move(req)); memtable_ids_to_wait.emplace_back( - cfd->imm()->GetLatestMemTableID()); + cfd_stats->imm()->GetLatestMemTableID()); } } }