diff options
| author | tv <tv@krebsco.de> | 2026-10-20 01:36:34 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-20 01:36:34 +0200 |
| commit | a7c2b8b181059e26172288e694505287f357a881 (patch) | |
| tree | c40d9bcd2e50ec7d2367ceee69d2377103419742 /src/compaction/records.rs | |
| parent | 247bb52f129d0438eb13d3cdd2ec8b5d281b2c99 (diff) | |
add epoch catch-up / snapshots
Diffstat (limited to 'src/compaction/records.rs')
| -rw-r--r-- | src/compaction/records.rs | 2 |
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, } |
