Commit e0e40c5c authored by Mike Hibler's avatar Mike Hibler

Split out history-related node DB tables into another hash.

parent d29db9a3
......@@ -182,7 +182,7 @@ use vars qw(@ISA @EXPORT);
TBDB_LOWVPORT TBDB_MAXVPORT TBDB_PORTRANGE
TBDB_PHYSICAL_NODE_TABLES
TBDB_PHYSICAL_NODE_TABLES TBDB_PHYSICAL_NODE_HISTORY_TABLES
TBDB_WIDEAREA_LOCALNODE
......@@ -689,7 +689,6 @@ sub TBDB_PHYSICAL_NODE_TABLES() {
'node_status' => [ 'node_id' ],
'node_rusage' => [ 'node_id' ],
'nodeipportnum' => [ 'node_id' ],
'nodelog' => [ 'node_id' ],
'nodes' => [ 'node_id', 'phys_nodeid' ],
'nodeuidlastlogin' => [ 'node_id' ],
'ntpinfo' => [ 'node_id' ],
......@@ -713,15 +712,25 @@ sub TBDB_PHYSICAL_NODE_TABLES() {
'widearea_recent' => [ 'node_id1', 'node_id2' ],
'wires' => [ 'node_id1', 'node_id2' ],
'node_startloc' => [ 'node_id' ],
'node_history' => [ 'node_id' ],
'node_bootlogs' => [ 'node_id' ],
'plab_mapping' => [ 'node_id' ],
'node_utilization' => [ 'node_id' ],
'subbosses' => [ 'node_id' ],
'node_licensekeys' => [ 'node_id' ],
);
}
#
# Node DB tables that contain history information.
# When deleting nodes, we typically want to retain this information.
#
sub TBDB_PHYSICAL_NODE_HISTORY_TABLES() {
return (
'node_history' => [ 'node_id' ],
'nodelog' => [ 'node_id' ],
'node_utilization' => [ 'node_id' ],
);
}
#
# Convert a trust string to the above numeric values.
#
......
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