Commit 88d3cd60 authored by Mike Hibler's avatar Mike Hibler
Browse files

Next round of DB changes for disk state saving.

parent abfbb5d7
......@@ -407,6 +407,7 @@ CREATE TABLE experiments (
paniced tinyint(1) NOT NULL default '0',
panic_date datetime default NULL,
delay_capacity tinyint(3) unsigned default NULL,
savedisk tinyint(1) NOT NULL default '0',
locpiper_pid int(11) default '0',
locpiper_port int(11) default '0',
PRIMARY KEY (eid,pid),
......@@ -1443,6 +1444,8 @@ CREATE TABLE partitions (
node_id varchar(32) NOT NULL default '',
partition tinyint(4) NOT NULL default '0',
osid varchar(35) default NULL,
imageid varchar(45) default NULL,
imagepid varchar(12) NOT NULL default '',
PRIMARY KEY (node_id,partition)
......@@ -2892,3 +2892,14 @@ last_net_act,last_cpu_act,last_ext_act);
create_time datetime default NULL,
PRIMARY KEY (node_id)
4.19: Infrastructure for disk state saving. Add imageid and imagepid
fields to partitions table to track what image is loaded on the disk
and savedisk field in experiments table.
alter table partitions add imageid varchar(45) default NULL \
after osid;
alter table partitions add imagepid varchar(12) NOT NULL default '' \
after imageid;
alter table experiments add savedisk tinyint(1) NOT NULL default 0 \
after delay_capacity;
Supports Markdown
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