Skip to content

Commit e51ca70

Browse files
committed
Set validate_final in execute after removing the last cycle head
1 parent 5750c84 commit e51ca70

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
@@ -235,6 +235,11 @@ where
235235
"{database_key_index:?}: execute: fixpoint iteration has a final value"
236236
);
237237
revisions.cycle_heads.remove(&database_key_index);
238+
239+
if revisions.cycle_heads.is_empty() {
240+
// If there are no more cycle heads, we can mark this as verified.
241+
revisions.verified_final.store(true, Ordering::Relaxed);
242+
}
238243
}
239244

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

0 commit comments

Comments
 (0)