From 3acbbd6cd6b64c6c39408dd254cc2dbcab1b3e65 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 20 Oct 2026 01:36:34 +0200 Subject: add epoch catch-up / snapshots --- src/compaction/records.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compaction/records.rs') diff --git a/src/compaction/records.rs b/src/compaction/records.rs index ce2b2a5..fbb9fb9 100644 --- a/src/compaction/records.rs +++ b/src/compaction/records.rs @@ -76,8 +76,10 @@ pub(crate) struct Retention { pub(crate) struct Policy { /// How stale a returning node's changes may be and still be replayed automatically; /// beyond it they are quarantined. + #[serde(default = "Policy::default_replay_window")] pub(crate) replay_window: Retention, /// How long nodes keep the old epoch's document. + #[serde(default = "Policy::default_archive_retention")] pub(crate) archive_retention: Retention, } -- cgit v1.3.1