Commit 2ab7656c authored by Mac Newbold's avatar Mac Newbold

Add a column I forgot to node_activity

parent 78340112
......@@ -534,6 +534,7 @@ CREATE TABLE node_activity (
last_net_act datetime NOT NULL default '0000-00-00 00:00:00',
last_cpu_act datetime NOT NULL default '0000-00-00 00:00:00',
last_ext_act datetime NOT NULL default '0000-00-00 00:00:00',
last_report datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (node_id)
) TYPE=MyISAM;
......
......@@ -43,7 +43,7 @@
ones had osid=osname. On other testbeds, need to check the
actual value of the osids.
1.115 Add node_activity table for new slothd stuff: (Mac)
1.115 Add node_activity table for new slothd stuff: (Mac)
CREATE TABLE node_activity (
node_id varchar(10) NOT NULL default '',
......@@ -54,4 +54,15 @@ CREATE TABLE node_activity (
PRIMARY KEY (node_id)
) TYPE=MyISAM;
No population of the table is necessary.
No population of the table is necessary. It will self populate
as nodes start to get activity reports.
1.116 Add last_report to node_activity table: (Mac)
alter table node_activity add last_report datetime not null;
To make its values consistent with the rest of the table:
update node_activity set last_report=greatest(last_tty_act,
last_net_act,last_cpu_act,last_ext_act);
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