From eadf0952260ba4b21e791226cf5ad39e8f079c86 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 01:58:17 +0000 Subject: federation: a node on a set begins anew from another checkpoint its operator pins A pin counted only while the node had no file of its set, so a node behind for longer than the others keep what a checkpoint forgot, or one undoing a move, had to start without its file, and lost what it refused of its own and what its operator had it drop. The file now says which checkpoint was pinned when the set began: with another pinned, and not the one the store is at, the node gathers its set anew from that one, its store refusing what the one in the file refused. A node of both kinds makes its set of its document then, where it finds the pin. --- src/simtest/holding.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/simtest') diff --git a/src/simtest/holding.rs b/src/simtest/holding.rs index 8f601dd..5d5cecf 100644 --- a/src/simtest/holding.rs +++ b/src/simtest/holding.rs @@ -2029,11 +2029,11 @@ async fn a_node_of_a_set_joins_with_nothing_but_the_stores_id() { move |config| { config.store = Some(id); config.holding = holding("lass").carrying_if( - Some(held::Begun::Start(passing::Start::new( + Some(held::Begun::Start(Box::new(passing::Start::new( id, id, Duration::from_secs(600), - ))), + )))), None, Arc::new(Files::default()), ); @@ -2086,11 +2086,11 @@ async fn a_node_no_party_lists_gets_nothing_of_a_set() { move |config| { config.store = Some(id); config.holding = holding("lass").carrying_if( - Some(held::Begun::Start(passing::Start::new( + Some(held::Begun::Start(Box::new(passing::Start::new( id, id, Duration::from_secs(600), - ))), + )))), None, Arc::new(Files::default()), ); @@ -2175,11 +2175,11 @@ async fn a_node_of_a_set_away_across_a_move_builds_the_checkpoint_itself() { move |config| { config.store = Some(id); config.holding = holding("makefu").carrying_if( - Some(held::Begun::Start(passing::Start::new( + Some(held::Begun::Start(Box::new(passing::Start::new( id, moved, Duration::from_secs(600), - ))), + )))), None, Arc::new(Files::default()), ); -- cgit v1.3.1