summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/table_manager.go')
-rw-r--r--table/table_manager.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/table/table_manager.go b/table/table_manager.go
index 4b9c0b97..7112c0ca 100644
--- a/table/table_manager.go
+++ b/table/table_manager.go
@@ -162,8 +162,9 @@ func (manager *TableManager) calculate(destinationList []Destination) ([]Path, [
// create withdraw path
if currentBestPath != nil {
log.Debug("best path is lost")
- destination.setOldBestPath(destination.getBestPath())
- lostPaths = append(lostPaths, destination.getBestPath())
+ p := destination.getBestPath()
+ destination.setOldBestPath(p)
+ lostPaths = append(lostPaths, p.clone(true))
}
destination.setBestPath(nil)
} else {