marsadm: only report split brain amount when defined

This commit is contained in:
Thomas Schoebel-Theuer 2018-09-11 08:19:45 +02:00
parent 8259937d87
commit 1616b620c7
1 changed files with 4 additions and 2 deletions

View File

@ -1457,8 +1457,10 @@ sub detect_splitbrain {
$age = " age ~" . seconds2human(mars_time() - $stamp) if $stamp;
}
lwarn "SPLIT BRAIN of resource '$res' after logfile '$point'$age\n";
lwarn " hostA = '$host1' logfile_amount='$size1' (" . number2human($size1) . ")\n";
lwarn " hostB = '$host2' logfile_amount='$size2' (" . number2human($size2) . ")\n";
if ($point) {
lwarn " hostA = '$host1' logfile_amount='$size1' (" . number2human($size1) . ")\n";
lwarn " hostB = '$host2' logfile_amount='$size2' (" . number2human($size2) . ")\n";
}
} else {
return $ok;
}