mirror of
https://github.com/schoebel/mars
synced 2024-12-26 08:32:24 +00:00
marsadm: fix join-resource corner case
This commit is contained in:
parent
d0dcec57b1
commit
0f3f43575b
@ -2869,11 +2869,9 @@ sub _set_replaylink {
|
||||
if ($log_nr > 1) {
|
||||
_fake_versionlink($basedir, $log_nr - 1, $primary);
|
||||
} else {
|
||||
my $initial;
|
||||
for (;;) {
|
||||
$initial = get_link("$basedir/version-000000001-$primary", 1);
|
||||
last if $initial;
|
||||
sleep_timeout();
|
||||
my $initial = get_link("$basedir/version-000000001-$primary", 1);
|
||||
unless (defined($initial) && $initial) {
|
||||
$initial = "00000000000000000000000000000000,log-000000001-$host,0:";
|
||||
}
|
||||
set_link($initial, "$basedir/version-000000001-$host");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user