mirror of https://github.com/schoebel/mars
marsadm: fix versionlink creation on freshly joined resource
This commit is contained in:
parent
99a8800b03
commit
60adc8a1c5
|
@ -643,6 +643,9 @@ sub _set_replaylink {
|
|||
my $vers_val = get_link($vers_link);
|
||||
$old_primary = $1 if $vers_val =~ m/:.*,log-[0-9]+-([^,]+),/;
|
||||
_fake_versionlink($basedir, $log_nr - 1, $old_primary);
|
||||
} else {
|
||||
my $initial = get_link("$basedir/version-000000001-$primary");
|
||||
set_link($initial, "$basedir/version-000000001-$host");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue