summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/destination.go')
-rw-r--r--table/destination.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/table/destination.go b/table/destination.go
index f2b4cafe..0d16a0db 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -121,6 +121,9 @@ func (dd *DestinationDefault) getBestPath() Path {
func (dd *DestinationDefault) setBestPath(path Path) {
dd.bestPath = path
+ if path != nil {
+ path.setBest(true)
+ }
}
func (dd *DestinationDefault) GetOldBestPath() Path {
@@ -129,6 +132,9 @@ func (dd *DestinationDefault) GetOldBestPath() Path {
func (dd *DestinationDefault) setOldBestPath(path Path) {
dd.oldBestPath = path
+ if path != nil {
+ path.setBest(false)
+ }
}
func (dd *DestinationDefault) getKnownPathList() []Path {