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
commita7c2b8b181059e26172288e694505287f357a881 (patch)
treec40d9bcd2e50ec7d2367ceee69d2377103419742 /src/compaction/records.rs
parent247bb52f129d0438eb13d3cdd2ec8b5d281b2c99 (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,
}