mirror of https://github.com/schoebel/mars
marsadm: re-activate any forgotten fetch on handover
This commit is contained in:
parent
e6d6a9b2fe
commit
8280839fba
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue