From 8280839fbaa8d94b676c59431d48e48069502f18 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Sun, 20 Sep 2020 08:32:06 +0200 Subject: [PATCH] marsadm: re-activate any forgotten fetch on handover --- userspace/marsadm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userspace/marsadm b/userspace/marsadm index 372ef937..e5e6e601 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -6397,6 +6397,7 @@ sub primary_phase0 { } # only for primary --force: wait until fetch has actually stopped +# otherwise: prepare prosumers sub primary_phase0a { my ($cmd, $res) = @_; my $new = $host; @@ -6408,8 +6409,7 @@ sub primary_phase0a { my $prosumers = get_prosumers(@_); $prosumers = "(none)" if !$prosumers; my $lnk = "$mars/resource-$res/new-primary"; - my $new = $host; - lprint "Prepare new primary '$new'\n"; + lprint "Prepare new primary '$new' for prosumers\n"; set_link($new, $lnk); $lnk = "$mars/resource-$res/todo-$new/exports"; set_link($prosumers, $lnk);