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 | 01f1d19d6b0b456991017022547e8c86bc8305ae (patch) | |
| tree | 076bf95a3b05e939678d29bc72231a5d99ea98d0 /src/compaction/records.rs | |
| parent | cdbcd5d0bb0799c1ea3402718e2af6a6244b4fd0 (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 391b2ba..6150a75 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, } |
