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
550985ec
Commit
550985ec
authored
Jan 18, 2011
by
Leigh B Stoller
Browse files
Print state when listing experiments stuck in transition.
parent
44abf290
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/dbboot.in
View file @
550985ec
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-201
0
University of Utah and the Flux Group.
# Copyright (c) 2000-201
1
University of Utah and the Flux Group.
# All rights reserved.
#
use
English
;
...
...
@@ -78,15 +78,15 @@ DBQueryFatal("replace into emulab_locks set name='pool_daemon',value='0'");
# Check for experiments stuck in transition.
#
$query_result
=
DBQueryFatal
("
select pid,eid,expt_locked from experiments
"
.
DBQueryFatal
("
select pid,eid,expt_locked
,state
from experiments
"
.
"
where expt_locked is not NULL
");
if
(
$query_result
->
numrows
)
{
print
"
The following experiments are stuck in transition.
\n\n
";
print
"
Pid Eid When
\n
";
print
"
------------ -------------------- ------------------------
\n
";
while
((
$pid
,
$eid
,
$locked
)
=
$query_result
->
fetchrow_array
)
{
printf
("
%-12s %-20s %s
\n
",
$pid
,
$eid
,
$locked
);
while
((
$pid
,
$eid
,
$locked
,
$state
)
=
$query_result
->
fetchrow_array
)
{
printf
("
%-12s %-20s
%s
%s
\n
",
$pid
,
$eid
,
$locked
,
$state
);
}
print
"
\n
";
}
...
...
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