Commit ec63ab8f authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor bug fix; make sure that swapuid and swaptime are updated. I

must have pruned this out by accident when cleaning up batchexp
a while back (combined it with startexp).
parent 92310196
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# All rights reserved.
#
use English;
......@@ -629,6 +629,16 @@ else {
GatherSwapStats($pid, $eid, $dbuid, TBDB_STATS_START, 0);
}
#
# Old accounting info (still used in web interface and autoswap).
#
TBSetExpSwapTime($pid, $eid);
#
# Set the swapper uid on success only, and *after* gathering swap stats!
#
TBExptSetSwapUID($pid, $eid, $dbuid);
#
# Close up the log file so the webpage stops.
#
......
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