aboutsummaryrefslogtreecommitdiffstats
path: root/src/simtest/holding.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-01 01:58:17 +0000
committertv <tv@krebsco.de>2026-12-01 01:58:17 +0000
commiteadf0952260ba4b21e791226cf5ad39e8f079c86 (patch)
treecbe9c24f258942621e6983b2f3865e1eff042ef4 /src/simtest/holding.rs
parent34bfcb661ed74bf40809576bbb388362cb7ffaa1 (diff)
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.
Diffstat (limited to 'src/simtest/holding.rs')
-rw-r--r--src/simtest/holding.rs12
1 files changed, 6 insertions, 6 deletions
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()),
);