marsadm: re-activate any forgotten fetch on handover

This commit is contained in:
Thomas Schoebel-Theuer 2020-09-20 08:32:06 +02:00 committed by Thomas Schoebel-Theuer
parent e6d6a9b2fe
commit 8280839fba
1 changed files with 2 additions and 2 deletions

View File

@ -6397,6 +6397,7 @@ sub primary_phase0 {
} }
# only for primary --force: wait until fetch has actually stopped # only for primary --force: wait until fetch has actually stopped
# otherwise: prepare prosumers
sub primary_phase0a { sub primary_phase0a {
my ($cmd, $res) = @_; my ($cmd, $res) = @_;
my $new = $host; my $new = $host;
@ -6408,8 +6409,7 @@ sub primary_phase0a {
my $prosumers = get_prosumers(@_); my $prosumers = get_prosumers(@_);
$prosumers = "(none)" if !$prosumers; $prosumers = "(none)" if !$prosumers;
my $lnk = "$mars/resource-$res/new-primary"; my $lnk = "$mars/resource-$res/new-primary";
my $new = $host; lprint "Prepare new primary '$new' for prosumers\n";
lprint "Prepare new primary '$new'\n";
set_link($new, $lnk); set_link($new, $lnk);
$lnk = "$mars/resource-$res/todo-$new/exports"; $lnk = "$mars/resource-$res/todo-$new/exports";
set_link($prosumers, $lnk); set_link($prosumers, $lnk);