From 8bca0d325a4ffa13a171eaed83096003aa28520e Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Mon, 31 Mar 2025 12:48:07 -0400 Subject: [PATCH] TxGraphImpl::Compact: m_main_clusterset.m_removed is always empty --- src/txgraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/txgraph.cpp b/src/txgraph.cpp index 0d66780c11c..fa1395273da 100644 --- a/src/txgraph.cpp +++ b/src/txgraph.cpp @@ -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;