Commit 550985ec authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Print state when listing experiments stuck in transition.

parent 44abf290
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# Copyright (c) 2000-2010 University of Utah and the Flux Group. # Copyright (c) 2000-2011 University of Utah and the Flux Group.
# All rights reserved. # All rights reserved.
# #
use English; use English;
...@@ -78,15 +78,15 @@ DBQueryFatal("replace into emulab_locks set name='pool_daemon',value='0'"); ...@@ -78,15 +78,15 @@ DBQueryFatal("replace into emulab_locks set name='pool_daemon',value='0'");
# Check for experiments stuck in transition. # Check for experiments stuck in transition.
# #
$query_result = $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"); "where expt_locked is not NULL");
if ($query_result->numrows) { if ($query_result->numrows) {
print "The following experiments are stuck in transition.\n\n"; print "The following experiments are stuck in transition.\n\n";
print "Pid Eid When\n"; print "Pid Eid When\n";
print "------------ -------------------- ------------------------\n"; print "------------ -------------------- ------------------------\n";
while (($pid,$eid,$locked) = $query_result->fetchrow_array) { while (($pid,$eid,$locked,$state) = $query_result->fetchrow_array) {
printf("%-12s %-20s %s\n", $pid, $eid, $locked); printf("%-12s %-20s %s %s\n", $pid, $eid, $locked, $state);
} }
print "\n"; print "\n";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment