Commit 5e50aa23 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Increase size of eventlist arguments (and atstring) from tinytext (255

chars) to text (65K chars) to avoid too-short problems with program
agent command lines. Note that the maximum size allowed by table_regex
checking will be set to 1024 for now.
parent 68caf625
......@@ -159,8 +159,8 @@ CREATE TABLE eventlist (
vname varchar(20) NOT NULL default '',
objecttype smallint(5) unsigned NOT NULL default '0',
eventtype smallint(5) unsigned NOT NULL default '0',
arguments tinytext,
atstring tinytext,
arguments text,
atstring text,
PRIMARY KEY (pid,eid,idx),
KEY vnode (vnode)
) TYPE=MyISAM;
......
......@@ -453,8 +453,8 @@ REPLACE INTO table_regex VALUES ('eventlist','vnode','text','redirect','virt_age
REPLACE INTO table_regex VALUES ('eventlist','vname','text','regex','^[-\\w\\(\\)]+$',1,20,NULL);
REPLACE INTO table_regex VALUES ('eventlist','objecttype','int','redirect','default:tinyint',0,0,NULL);
REPLACE INTO table_regex VALUES ('eventlist','eventtype','int','redirect','default:tinyint',0,0,NULL);
REPLACE INTO table_regex VALUES ('eventlist','arguments','text','redirect','default:tinytext',0,0,NULL);
REPLACE INTO table_regex VALUES ('eventlist','atstring','text','redirect','default:tinytext',0,0,NULL);
REPLACE INTO table_regex VALUES ('eventlist','arguments','text','redirect','default:text',0,1024,NULL);
REPLACE INTO table_regex VALUES ('eventlist','atstring','text','redirect','default:text',0,1024,NULL);
REPLACE INTO table_regex VALUES ('experiments','eid','text','regex','^[a-zA-Z0-9][-a-zA-Z0-9]+$',2,19,'Must ensure not too long for the database. PID is 12, and the max is 32, so the user is not allowed to specify an EID more than 19, since other parts of the system may concatenate them together with a hyphen');
REPLACE INTO table_regex VALUES ('experiments','multiplex_factor','int','redirect','default:tinyint',0,0,NULL);
REPLACE INTO table_regex VALUES ('experiments','forcelinkdelays','int','redirect','default:boolean',0,0,NULL);
......
......@@ -1312,3 +1312,12 @@ last_net_act,last_cpu_act,last_ext_act);
alter table new_interfaces add cable smallint;
alter table new_interfaces add len tinyint;
1.128: Increase size of eventlist arguments (and atstring) from
tinytext (255 chars) to text (65K chars) to avoid too-short problems
with program agent command lines. Note that the maximum size allowed
by table_regex checking will be set to 1024 for now.
alter table eventlist change arguments arguments text;
alter table eventlist change atstring atstring text;
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