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

Next round of DB changes for disk state saving.

parent abfbb5d7
...@@ -407,6 +407,7 @@ CREATE TABLE experiments ( ...@@ -407,6 +407,7 @@ CREATE TABLE experiments (
paniced tinyint(1) NOT NULL default '0', paniced tinyint(1) NOT NULL default '0',
panic_date datetime default NULL, panic_date datetime default NULL,
delay_capacity tinyint(3) unsigned default NULL, delay_capacity tinyint(3) unsigned default NULL,
savedisk tinyint(1) NOT NULL default '0',
locpiper_pid int(11) default '0', locpiper_pid int(11) default '0',
locpiper_port int(11) default '0', locpiper_port int(11) default '0',
PRIMARY KEY (eid,pid), PRIMARY KEY (eid,pid),
...@@ -1443,6 +1444,8 @@ CREATE TABLE partitions ( ...@@ -1443,6 +1444,8 @@ CREATE TABLE partitions (
node_id varchar(32) NOT NULL default '', node_id varchar(32) NOT NULL default '',
partition tinyint(4) NOT NULL default '0', partition tinyint(4) NOT NULL default '0',
osid varchar(35) default NULL, osid varchar(35) default NULL,
imageid varchar(45) default NULL,
imagepid varchar(12) NOT NULL default '',
PRIMARY KEY (node_id,partition) PRIMARY KEY (node_id,partition)
) TYPE=MyISAM; ) TYPE=MyISAM;
......
...@@ -2892,3 +2892,14 @@ last_net_act,last_cpu_act,last_ext_act); ...@@ -2892,3 +2892,14 @@ last_net_act,last_cpu_act,last_ext_act);
create_time datetime default NULL, create_time datetime default NULL,
PRIMARY KEY (node_id) PRIMARY KEY (node_id)
) TYPE=MyISAM; ) TYPE=MyISAM;
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;
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