marsadm: fix versionlink creation on freshly joined resource

This commit is contained in:
Thomas Schoebel-Theuer 2013-05-13 15:17:20 +02:00
parent 99a8800b03
commit 60adc8a1c5
1 changed files with 3 additions and 0 deletions

View File

@ -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");
}
}