Merge f-027-gh-eng-d again (9d85432b8: QFUSE one-token self-commit)

This commit is contained in:
Niko1221 committed 2026-10-27 03:12:14 +01:00
commit 1c2efd789a
1 file changed
+3 -2
+3 -2
View File
@@ -3641,8 +3641,9 @@ bool Verifier::commit(int n_keep, std::string& err) {
h_commit_[0] = n_keep;
h_commit_[1] = n_keep - 1;
for (int t = 0; t < max_t_; ++t) h_commit_[2 + t] = t < n_keep ? (int32_t) (last_pos0_ + t) : -1;
if (last_t_ == 1 && !always_publish_ && one_token_self_commit()) {
// a one-token window has advanced the state itself (record_window): no commit graph
if (last_t_ == 1 && !always_publish_ && one_token_self_commit() && !g_qfuse()) {
// a one-token window has advanced the state itself (record_window): no commit graph. (Not with STRATA_QFUSE: its windows
// do not self-commit, see `self_commit` there - skipping the commit here left the GDN state and the indexer tail one token behind.)
} else {
std::atomic_thread_fence(std::memory_order_seq_cst);
// STRATA_COMMIT_TIMING=1 (measurement only): the commit graph's GPU time, from an event pair around it (read at the