Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
2ab7656c
Commit
2ab7656c
authored
Mar 18, 2003
by
Mac Newbold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a column I forgot to node_activity
parent
78340112
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
sql/database-create.sql
sql/database-create.sql
+1
-0
sql/database-migrate.txt
sql/database-migrate.txt
+13
-2
No files found.
sql/database-create.sql
View file @
2ab7656c
...
...
@@ -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
;
...
...
sql/database-migrate.txt
View file @
2ab7656c
...
...
@@ -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);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment