Skip to content

Commit 8bca0d3

Browse files
committed
TxGraphImpl::Compact: m_main_clusterset.m_removed is always empty
1 parent 2c5cf98 commit 8bca0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/txgraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ void TxGraphImpl::Compact() noexcept
10081008
// to rewrite them. It is easier to delay the compaction until they have been applied.
10091009
if (!m_main_clusterset.m_deps_to_add.empty()) return;
10101010
if (!m_main_clusterset.m_to_remove.empty()) return;
1011-
if (!m_main_clusterset.m_removed.empty()) return;
1011+
Assume(m_main_clusterset.m_removed.empty()); // non-staging m_removed is always empty
10121012
if (m_staging_clusterset.has_value()) {
10131013
if (!m_staging_clusterset->m_deps_to_add.empty()) return;
10141014
if (!m_staging_clusterset->m_to_remove.empty()) return;

0 commit comments

Comments
 (0)