diff --git a/db/db_impl.cc b/db/db_impl.cc index 9a5cc3d93..19a394c74 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -969,6 +969,7 @@ Status DBImpl::GetImpl(const ReadOptions& read_options, RecordTick(stats_, MEMTABLE_HIT); } if (!done && !s.ok() && !s.IsMergeInProgress()) { + ReturnAndCleanupSuperVersion(cfd, sv); return s; } }