Commit 145ee005 authored by Leigh B Stoller's avatar Leigh B Stoller

Delete from node_attributes when deleting nodes.

parent 99d74678
......@@ -598,6 +598,7 @@ sub TBDB_PHYSICAL_NODE_TABLES() {
'next_reserve' => [ 'node_id' ],
'node_activity' => [ 'node_id' ],
'node_auxtypes' => [ 'node_id' ],
'node_attributes' => [ 'node_id' ],
'node_features' => [ 'node_id' ],
'node_hostkeys' => [ 'node_id' ],
'node_idlestats' => [ 'node_id' ],
......
......@@ -2450,6 +2450,7 @@ sub DeleteVnodes(@)
DBQueryWarn("delete from node_hostkeys where node_id='$vnodeid'");
DBQueryWarn("delete from node_status where node_id='$vnodeid'");
DBQueryWarn("delete from node_rusage where node_id='$vnodeid'");
DBQueryWarn("delete from node_attributes where node_id='$vnodeid'");
# Need to clean out some additional tables since some vnodes can be
# reimaged now!
DBQueryWarn("delete from current_reloads where node_id='$vnodeid'");
......
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