Commit f424bde2 authored by Mike Hibler's avatar Mike Hibler

Move the @links == 0 test down even further.

It is amazing the amount of stuff you have to do, even if you are not going
to do anything!
parent 53d50830
......@@ -346,20 +346,6 @@ if (!$synserv || !exists($hostmap{$synserv})) {
}
&debug("Synch master is $synserv\n");
#
# If there are no links to test, there is nothing to do!
# Do this after we have identified the synch server.
#
if (@links == 0) {
&debug("No links to test!\n");
my $msg = "Linktest skipped, no links";
&sim_event(EVENT_LOG,$msg);
&debug("\n$msg\n\n");
&post_event(EVENT_COMPLETE,"ERROR=0 CTOKEN=$token");
exit(EXIT_OK);
}
#
# If the current node is the special node, do some housekeeping
# and initialize the barrier count.
......@@ -394,6 +380,20 @@ if(&is_special_node()) {
$barr_count--;
}
#
# If there are no links to test, there is nothing to do!
# Do this after we have identified the synch server.
#
if (@links == 0) {
&debug("No links to test!\n");
my $msg = "Linktest skipped, no links";
&sim_event(EVENT_LOG,$msg);
&debug("\n$msg\n\n");
&post_event(EVENT_COMPLETE,"ERROR=0 CTOKEN=$token");
exit(EXIT_OK);
}
#
# All nodes remove local temporary files remaining from the last
# run, if any.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment