Commit f0f76d8b authored by Mike Hibler's avatar Mike Hibler

Create a node log entry when we nfree a node from hwdown.

This way we know "who done it" so we can smack em around if they nfree
something they should not have.
parent 503d86bc
......@@ -273,6 +273,13 @@ foreach my $n (@freed_nodes) {
"where node_id='$n' and ".
" role='" . TBDB_IFACEROLE_EXPERIMENT() . "'")
|| $error++;
# And log phys nodes freed from hwdown
my $dbuid;
if ($pid eq NODEDEAD_PID() && $eid eq NODEDEAD_EID()
&& UNIX2DBUID($UID, \$dbuid)) {
TBSetNodeLogEntry($n, $dbuid, "misc",
"'Moved from hwdown; nfree'");
}
}
my $allocFreeState = TBDB_ALLOCSTATE_FREE_DIRTY();
......
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