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
1d6800ae
Commit
1d6800ae
authored
Feb 25, 2003
by
Leigh B. Stoller
Browse files
Clear out linkdelays table on error/swapout.
parent
d48173fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
tbsetup/tbswapin.in
View file @
1d6800ae
...
...
@@ -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
);
}
...
...
tbsetup/tbswapout.in
View file @
1d6800ae
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
2
University of Utah and the Flux Group.
# Copyright (c) 2000-200
3
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
);
...
...
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