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
0b171950
Commit
0b171950
authored
Jul 30, 2013
by
Leigh B Stoller
Browse files
Minor tweek; skip shared nodes while experiment is not active.
Avoids email blasts while swapping.
parent
3fe79700
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/poolmonitor.in
View file @
0b171950
...
...
@@ -96,6 +96,7 @@ use lib "@prefix@/lib";
use
libtestbed
;
use
emdb
;
use
Experiment
;
use
EmulabConstants
;
use
Node
;
use
emutil
;
use
libEmulab
;
...
...
@@ -143,7 +144,9 @@ while (1) {
DBQueryWarn
("
select r.node_id from reserved as r
"
.
"
left join nodes as n on n.node_id=r.node_id
"
.
"
left join node_types as t on t.type=n.type
"
.
"
left join experiments as e on e.idx=r.exptidx
"
.
"
where sharing_mode is not null and
"
.
"
e.state='
"
.
EXPTSTATE_ACTIVE
()
.
"
' and
"
.
"
n.node_id=n.phys_nodeid and t.class='pc'
");
goto
skip
if
(
!
$query_result
||
!
$query_result
->
numrows
);
...
...
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