marsadm: re-activate any forgotten fetch on handover

This commit is contained in:
Thomas Schoebel-Theuer 2020-09-20 17:27:13 +02:00
parent 03e69bdd5c
commit 26b40474cb
1 changed files with 6 additions and 0 deletions

View File

@ -4958,6 +4958,12 @@ sub primary_phase0 {
# only for primary --force: wait until fetch has actually stopped
sub primary_phase0a {
my ($cmd, $res) = @_;
my $new = $host;
if (!$force && $cmd =~ m/primary/) {
lprint "Prepare new primary '$new' handover\n";
_switch($cmd, $res, "$mars/resource-$res/todo-$new/fetch", 1);
}
finish_links();
return unless $force;
wait_cond($cmd, $res, "is-fetch-off");
}