Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
d1998932
Commit
d1998932
authored
Jun 08, 2004
by
Leigh B. Stoller
Browse files
Add another index to virt_lans.
parent
063422d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
d1998932
...
...
@@ -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
;
--
...
...
sql/database-migrate.txt
View file @
d1998932
...
...
@@ -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);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment