Commit 73c7a852 authored by Leigh B Stoller's avatar Leigh B Stoller

Oops, left out an index I needed.

parent 12e1258c
......@@ -2378,7 +2378,8 @@ CREATE TABLE `node_history` (
PRIMARY KEY (`history_id`),
KEY `node_id` (`node_id`,`history_id`),
INDEX `exptidx` (`exptidx`),
INDEX `stamp` (`stamp`)
INDEX `stamp` (`stamp`),
INDEX `cnet_ip` (`cnet_ip`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
......
......@@ -16,6 +16,10 @@ sub DoUpdate($$$)
DBQueryFatal("alter table node_history add " .
" INDEX stamp (stamp)");
}
if (!DBKeyExists("node_history", "cnet_ip")) {
DBQueryFatal("alter table node_history add " .
" INDEX cnet_ip (cnet_ip)");
}
return 0;
}
......
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