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
7ed84a4d
Commit
7ed84a4d
authored
Jan 17, 2006
by
Mike Hibler
Browse files
Fix a couple of ineffecient queries
parent
a56be512
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/libdb.pm.in
View file @
7ed84a4d
...
...
@@ -2,7 +2,7 @@
#
#
EMULAB
-
COPYRIGHT
#
Copyright
(
c
)
2000
-
200
5
University
of
Utah
and
the
Flux
Group
.
#
Copyright
(
c
)
2000
-
200
6
University
of
Utah
and
the
Flux
Group
.
#
All
rights
reserved
.
#
...
...
@@ -3406,8 +3406,9 @@ sub TBNodeAdminOSID($)
{
my ($node) = @_;
my $result = DBQueryFatal("SELECT nt.adminmfs_osid FROM node_types AS nt ".
"LEFT JOIN nodes as n on nt.type = n.type ".
my $result = DBQueryFatal("SELECT nt.adminmfs_osid FROM nodes AS n ".
"LEFT JOIN node_types as nt ".
"on nt.type = n.type ".
"WHERE n.node_id='$node'");
if ($result->num_rows() != 1) {
return undef;
...
...
@@ -3424,8 +3425,9 @@ sub TBNodeDiskloadOSID($)
{
my ($node) = @_;
my $result = DBQueryFatal("SELECT nt.diskloadmfs_osid FROM node_types AS nt ".
"LEFT JOIN nodes as n on nt.type = n.type ".
my $result = DBQueryFatal("SELECT nt.diskloadmfs_osid FROM nodes AS n ".
"LEFT JOIN node_types as nt ".
"on nt.type = n.type ".
"WHERE n.node_id='$node'");
if ($result->num_rows() != 1) {
return undef;
...
...
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