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
f9794978
Commit
f9794978
authored
Jan 31, 2003
by
Robert Ricci
Browse files
Speed up the load_address query in tmcd somewhat
parent
6fc341a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
f9794978
...
...
@@ -315,7 +315,8 @@ CREATE TABLE images (
ezid
tinyint
(
4
)
NOT
NULL
default
'0'
,
shared
tinyint
(
4
)
NOT
NULL
default
'0'
,
updated
datetime
default
NULL
,
PRIMARY
KEY
(
imagename
,
pid
)
PRIMARY
KEY
(
imagename
,
pid
),
KEY
imageid
(
imageid
)
)
TYPE
=
MyISAM
;
--
...
...
@@ -492,7 +493,7 @@ CREATE TABLE node_idlestats (
)
TYPE
=
MyISAM
;
--
-- Table structure for table 'node_
type
s'
-- Table structure for table 'node_
statu
s'
--
CREATE
TABLE
node_status
(
...
...
tmcd/tmcd.c
View file @
f9794978
...
...
@@ -2682,8 +2682,8 @@ COMMAND_PROTOTYPE(doloadinfo)
/*
* Get the address the node should contact to load its image
*/
res
=
mydb_query
(
"select load_address,loadpart,OS from
image
s as
i
"
"left join
current_reload
s as
r
on i.imageid = r.image_id "
res
=
mydb_query
(
"select load_address,loadpart,OS from
current_reload
s as
r
"
"left join
image
s as
i
on i.imageid = r.image_id "
"left join os_info as o on i.default_osid = o.osid "
"where node_id='%s'"
,
3
,
reqp
->
nodeid
);
...
...
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