All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit a09dbb59 authored by Leigh B Stoller's avatar Leigh B Stoller

Watch for an uninitialized variable that is an actual bug, as reported

by Hussam.
parent 59415451
......@@ -848,7 +848,13 @@ sub stateTransition($$) {
my $r = DBQueryWarn("select osid,def_boot_osid from nodes ".
"where node_id='$node'");
my ($osid,$defosid) = $r->fetchrow();
if ($osid ne $defosid) {
if (! (defined($osid) && defined($defosid))) {
info("$node: osid not defined\n")
if (!defined($osid));
info("$node: def_boot_osid not defined\n")
if (!defined($defosid));
}
elsif ($osid ne $defosid) {
handleCtrlEvent($node,$trig);
}
next;
......
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