Commit ca044800 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add locked field to the instance record to prevent concurrent changes.

parent dedc71cf
......@@ -637,6 +637,7 @@ CREATE TABLE experiment_template_instances (
runidx int(10) unsigned default NULL,
template_tag varchar(64) default NULL,
export_time datetime default NULL,
locked datetime default NULL,
PRIMARY KEY (idx),
KEY exptidx (exptidx),
KEY parent_guid (parent_guid,parent_vers),
......
......@@ -3740,3 +3740,8 @@ last_net_act,last_cpu_act,last_ext_act);
4.94: Minor fix to last revision; skip to next entry please.
4.95: Add a locked field to the instances table.
alter table experiment_template_instances add \
locked datetime default NULL;
......@@ -318,6 +318,8 @@ CREATE TABLE experiment_template_instances (
template_tag varchar(64) default NULL,
-- Date of last export.
export_time datetime default NULL,
-- A lock to prevent mayhem.
locked datetime default NULL,
PRIMARY KEY (idx),
KEY (exptidx),
KEY (parent_guid,parent_vers),
......
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