From eb86a4e275404e9ca1f520052ad5ee98898db6e2 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 7 Apr 2021 14:18:02 +0200 Subject: [PATCH] marsadm: silence warning on fresh resource directories --- userspace/marsadm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/userspace/marsadm b/userspace/marsadm index 51e26968..f8cf5f2e 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -2777,13 +2777,13 @@ sub _activate_resource { lprint "OK, resource directory '$resdir' exists.\n"; my $check_link = "$resdir/size"; $max_retry = 3; - until (get_link($check_link, 1)) { - my $condition = "return get_link(\"$check_link\", 1);"; + until (get_link($check_link, 2)) { + my $condition = "return get_link(\"$check_link\", 2);"; update_cluster($cmd, $res, "*", $condition); if ($max_retry-- < 0) { ldie "link '$check_link' does not exist.\n"; } - lwarn "link '$check_link' does not yet exist, fetching...\n"; + lprint "link '$check_link' does not yet exist, fetching...\n"; $need_trigger++; sleep(3); }