Stop snapshot-anchor warning flood during state checks

This commit is contained in:
Carl Niklas Rydberg 2026-02-08 09:01:13 +01:00
parent 624bd29bf9
commit 88d9717513

View file

@ -11,7 +11,6 @@
#include "amduat/enc/asl_core_index.h"
#include "amduat/enc/asl_log.h"
#include "amduat/hash/asl1.h"
#include "amduat/util/log.h"
#include <dirent.h>
#include <errno.h>
@ -3827,13 +3826,6 @@ static bool amduat_asl_store_index_fs_current_state_impl(
if (manifest.anchor_logseq > out_state->log_position) {
out_state->log_position = manifest.anchor_logseq;
}
} else {
amduat_log(
AMDUAT_LOG_WARN,
"index snapshot anchor beyond log tail; ignoring snapshot (snapshot=%" PRIu64 " anchor=%" PRIu64 " log_tail=%" PRIu64 ")",
(uint64_t)manifest.snapshot_id,
(uint64_t)manifest.anchor_logseq,
(uint64_t)last_logseq);
}
amduat_asl_snapshot_manifest_free(&manifest);
} else if (record_count != 0u &&