TxGraphImpl::Compact: m_main_clusterset.m_removed is always empty

This commit is contained in:
Greg Sanders committed 2025-03-31 13:07:14 -04:00
1 parent 2c5cf987e9
commit 8bca0d325a
1 file changed
+1 -1
+1 -1
View File
@@ -1008,7 +1008,7 @@ void TxGraphImpl::Compact() noexcept
// to rewrite them. It is easier to delay the compaction until they have been applied.
if (!m_main_clusterset.m_deps_to_add.empty()) return;
if (!m_main_clusterset.m_to_remove.empty()) return;
if (!m_main_clusterset.m_removed.empty()) return;
Assume(m_main_clusterset.m_removed.empty()); // non-staging m_removed is always empty
if (m_staging_clusterset.has_value()) {
if (!m_staging_clusterset->m_deps_to_add.empty()) return;
if (!m_staging_clusterset->m_to_remove.empty()) return;