Commit 3776b031 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Init the allocstate on virt nodes to INIT_CLEAN wheb allocating,

to be complete and to avoid warnings elsewhere.
parent 03df3b2d
......@@ -1334,6 +1334,9 @@ if (scalar(keys(%isremotenode))) {
push(@{$p2vmap{$phys_nodeid}}, $virtual);
$jailed{$virtual} = $jailflag;
# Virtual nodes are always clean. Also prevents errors elsewhere.
TBSetNodeAllocState($physical, TBDB_ALLOCSTATE_RES_INIT_CLEAN());
}
TBDebugTimeStamp("wanassign finished");
}
......@@ -1436,6 +1439,9 @@ foreach my $pnode (keys(%virtnodes)) {
TBIsNodeVirtual($physical, \$jailflag);
$jailed{$virtual} = $jailflag;
# Virtual nodes are always clean. Also prevents errors elsewhere.
TBSetNodeAllocState($physical, TBDB_ALLOCSTATE_RES_INIT_CLEAN());
}
}
......
Supports Markdown
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