Commit 667ffd4c authored by Mike Hibler's avatar Mike Hibler

Make sure -n truly makes it impotent. As it was, it would not add routes

to the virt_routes table, but it would delete them!
parent cbe7fc8b
......@@ -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.
#
......@@ -306,8 +306,10 @@ foreach my $result (@results) {
#
# Clean the routes.
#
DBQueryFatal("delete from virt_routes where ".
"pid='$pid' and eid='$eid'");
if (! $impotent) {
DBQueryFatal("delete from virt_routes where ".
"pid='$pid' and eid='$eid'");
}
#
# Now it gets fun. We have to go through each src:dst pair in the route
......
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