diff --git a/db/job_context.h b/db/job_context.h index cf48888e0..4b0a8edfc 100644 --- a/db/job_context.h +++ b/db/job_context.h @@ -117,7 +117,7 @@ struct JobContext { } } return memtables_to_free.size() > 0 || logs_to_free.size() > 0 || - sv_have_sth; + job_snapshot != nullptr || sv_have_sth; } // Structure to store information for candidate files to delete.