mirror of https://github.com/schoebel/mars
marsadm: remove irritating warning
This commit is contained in:
parent
e1b241e3ad
commit
8888571b2c
|
@ -2009,7 +2009,6 @@ sub primary_phase0 {
|
||||||
my ($cmd, $res) = @_;
|
my ($cmd, $res) = @_;
|
||||||
ldie "cannot switch primary: mars kernel module is not loaded\n" unless ($cmd eq "secondary" || -d "/proc/sys/mars");
|
ldie "cannot switch primary: mars kernel module is not loaded\n" unless ($cmd eq "secondary" || -d "/proc/sys/mars");
|
||||||
if ($force) {
|
if ($force) {
|
||||||
lwarn "You can do a '$cmd --force' only in PAUSE-FETCH / DISCONNECTED state.\n";
|
|
||||||
check_todo($cmd, $res, "fetch", 0, 0);
|
check_todo($cmd, $res, "fetch", 0, 0);
|
||||||
}
|
}
|
||||||
my $old = _get_designated_primary($res);
|
my $old = _get_designated_primary($res);
|
||||||
|
|
Loading…
Reference in New Issue