Skip to content

Commit 0d1a6bd

Browse files
committed
Set validate_final in execute after removing the last cycle head
1 parent 8aaeb70 commit 0d1a6bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/function/execute.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ where
237237
"{database_key_index:?}: execute: fixpoint iteration has a final value"
238238
);
239239
cycle_heads.remove(&database_key_index);
240+
241+
if cycle_heads.is_empty() {
242+
// If there are no more cycle heads, we can mark this as verified.
243+
revisions.verified_final.store(true, Ordering::Relaxed);
244+
}
240245
}
241246

242247
tracing::debug!("{database_key_index:?}: execute: result.revisions = {revisions:#?}");

0 commit comments

Comments
 (0)