summaryrefslogtreecommitdiffstats
path: root/src/compaction/records.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-20 01:36:34 +0200
committertv <tv@krebsco.de>2026-10-20 01:36:34 +0200
commit3acbbd6cd6b64c6c39408dd254cc2dbcab1b3e65 (patch)
treeafaf883aeb949cdd79d7ef360ba9ee197072e368 /src/compaction/records.rs
parent31dddb08e4f36392ed9b033f78efd00c243c46bb (diff)
add epoch catch-up / snapshots
Diffstat (limited to 'src/compaction/records.rs')
-rw-r--r--src/compaction/records.rs2
1 files changed, 2 insertions, 0 deletions
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,
}