diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-10 23:36:50 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-11 11:36:11 +0900 |
commit | 6da36949d00c636783ab855766be90500a631ea8 (patch) | |
tree | f129313c05d4f77e0311cc7dd62d1ce31a4dab58 /table | |
parent | ea91729196a0e911988a6ba53cbccb21e9e6d11e (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.go | 1 |
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, } } |