Commit d1998932 authored by Leigh Stoller's avatar Leigh Stoller

Add another index to virt_lans.

parent 063422d4
......@@ -1669,7 +1669,8 @@ CREATE TABLE virt_lans (
trivial_ok tinyint(4) default '1',
protocol varchar(30) NOT NULL default 'ethernet',
is_accesspoint tinyint(4) default '0',
KEY pid (pid,eid,vname)
KEY pid (pid,eid,vname),
KEY vnode (pid,eid,vnode)
) TYPE=MyISAM;
--
......
......@@ -1597,3 +1597,8 @@ last_net_act,last_cpu_act,last_ext_act);
Whats vport about? Rather then rely on IP addresses to form a
unique key, we use vport (a small integer) so that we can delay the
IP assignment until later (after initial DB insertion).
1.250: Add another index to virt_lans for above change.
alter table virt_lans add index vnode (pid,eid,vnode);
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