Skip to content
GitLab
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
644939d2
Commit
644939d2
authored
Apr 10, 2008
by
Mike Hibler
Browse files
Figure admin bit into ordering of node query to enable later optimizations
parent
6f6b2417
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/exports_setup.in
View file @
644939d2
...
...
@@ -150,8 +150,8 @@ if ($WINSUPPORT) {
#
# First gather up all the nodes that are reserved and the required info.
# Order by pid,gid first so that they're all grouped together and we
avoid
# extra db queries.
# Order by pid,gid
,admin
first so that they're all grouped together and we
#
avoid
extra db queries
(see lastpid/lastgid/lastadmin)
.
#
# VIRTNODE HACK: Virtual nodes are special, so do not export. (isvirtnode).
#
...
...
@@ -168,7 +168,7 @@ $nodes_result =
"
and nodes.role='testnode'
"
.
"
and node_types.isvirtnode=0
"
.
"
and node_types.isremotenode=0
"
.
"
order by r.pid,e.gid,r.eid,nodes.priority
");
"
order by r.pid,e.gid,r.eid,
u.admin,
nodes.priority
");
my
%ipgroups
=
();
my
%globalsmbshares
=
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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