From 2ac2b0e2b08f14be07c46b3fd9a516a64e9933fb Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2026 19:29:26 +0100 Subject: LWW everywhere, mostly --- src/config/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/config/mod.rs') diff --git a/src/config/mod.rs b/src/config/mod.rs index bb65b97..0101aa4 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -256,6 +256,13 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[ Some("7d"), "Members that renewed their alive stamp within this time vote on remakes (a majority of them must agree). At least 7h (members renew every seventh of their own window, hourly at most); the same on every node, or a coordinator with a shorter one counts fewer members.", ), + option( + "superseded-writes", + Kind::Text, + "drop|quarantine", + Some("drop"), + "What becomes of a write a remake or rejoin would carry over though a newer one touched its path (last writer wins, by the writers' clocks): drop leaves it out (logged), quarantine keeps it for an operator (/admin/quarantine).", + ), option( "clock-skew-warn", Kind::Duration, @@ -528,6 +535,8 @@ pub(crate) struct Settings { with = "crate::units::duration_option" )] pub(crate) electorate_window: Duration, + #[serde(default)] + pub(crate) superseded_writes: crate::remake::Superseded, #[serde( default = "default_clock_skew_warn", with = "crate::units::duration_option" -- cgit v1.3.1