Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
419f3eb8
Commit
419f3eb8
authored
Jun 18, 2008
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add filter by pre-reserve pid.
parent
346db992
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
db/avail.in
db/avail.in
+4
-13
No files found.
db/avail.in
View file @
419f3eb8
...
...
@@ -105,23 +105,14 @@ if (defined($args{"ver"})) {
$cols
.=
"
,d.version
";
$cond
.=
"
and d.version='
"
.
$args
{"
ver
"}
.
"
'
"
if
$args
{"
ver
"}
ne
'
=
';
}
# if (defined($args{"deltas"})) {
# $os = 1;
# $delta=1;
# $cols .= ",e.delta_id";
# $cond .= " and e.delta_id='".$args{"deltas"}."'" if $args{"deltas"} ne '=';
# }
if
(
$os
)
{
$join
.=
"
left join partitions as c on a.node_id=c.node_id
";
$join
.=
"
left join os_info as d on c.osid=d.osid
";
}
# if ($delta) {
# $join .= " left join delta_inst as e on c.node_id=e.node_id ".
# "and c.partition=e.partition";
# }
if
(
defined
(
$args
{"
prereserve
"}))
{
$pid
=
$args
{"
prereserve
"};
$cond
.=
"
and a.reserved_pid='
$pid
'
";
}
my
$cmd
=
"
select
$cols
from
$join
where
$cond
order by
$order
$limit
";
...
...
Write
Preview
Markdown
is supported
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