summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-06-10 23:36:50 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-06-11 11:36:11 +0900
commit6da36949d00c636783ab855766be90500a631ea8 (patch)
treef129313c05d4f77e0311cc7dd62d1ce31a4dab58 /table
parentea91729196a0e911988a6ba53cbccb21e9e6d11e (diff)
table: fix Clone() to inherite the attribute hash value
CreateUpdateMsgFromPaths() assumes that a path has a proper hash value. If a path doesn't, the function takes too long. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r--table/path.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/table/path.go b/table/path.go
index e22f5780..eaa49bca 100644
--- a/table/path.go
+++ b/table/path.go
@@ -333,6 +333,7 @@ func (path *Path) Clone(isWithdraw bool) *Path {
parent: path,
IsWithdraw: isWithdraw,
IsNexthopInvalid: path.IsNexthopInvalid,
+ attrsHash: path.attrsHash,
}
}