Commit 70792420 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Clear out the SFS hostid from the node_hostkeys table when node is

released. Not sure if the other keys need to be done, but does not
appear to matter.
parent a7dabeeb
......@@ -301,6 +301,11 @@ foreach my $n (@freed_nodes) {
TBSetNodeEventState($n, TBDB_NODESTATE_SHUTDOWN)
if ($isvirt && $estate ne TBDB_NODESTATE_SHUTDOWN());
# Clean out the SFS hostid. What about the other keys?
DBQueryWarn("update node_hostkeys set ".
" sfshostid=NULL ".
"where node_id='$n'") || $error++;
# Clean out the current_reloads table (a just in case measure).
DBQueryWarn("delete from current_reloads where node_id='$n'") || $error++;
......
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