Commit 1d6800ae authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Clear out linkdelays table on error/swapout.

parent d48173fb
......@@ -95,6 +95,7 @@ sub cleanup {
DBQueryWarn("DELETE from tunnels where pid='$pid' and eid='$eid'");
DBQueryWarn("DELETE from v2pmap where pid='$pid' and eid='$eid'");
DBQueryWarn("DELETE from ipport_ranges where pid='$pid' and eid='$eid'");
DBQueryWarn("DELETE from linkdelays where pid='$pid' and eid='$eid'");
SetExpState($pid, $eid, EXPTSTATE_SWAPPED);
}
......
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -175,6 +175,8 @@ DBQueryWarn("DELETE from v2pmap where pid='$pid' and eid='$eid'")
or $errors++;
DBQueryWarn("DELETE from ipport_ranges where pid='$pid' and eid='$eid'")
or $errors++;
DBQueryWarn("DELETE from linkdelays where pid='$pid' and eid='$eid'")
or $errors++;
# Accounting info.
TBSetExpSwapTime($pid, $eid);
......
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