vpcagent: ovn: cmp: generate clean args in a single batch

This commit is contained in:
Yousong Zhou
2020-05-15 16:31:18 +08:00
parent 3864156c5f
commit fea1e2166e
+2 -2
View File
@@ -36,7 +36,7 @@ func cmp(db *ovnutil.OVNNorthbound, ocver string, irows ...ovnutil.IRow) (bool,
if len(irowsFound) == len(irows) {
return true, nil
}
args := ovnutil.OvnNbctlArgsDestroy(irowsFound)
args = append(args, ovnutil.OvnNbctlArgsDestroy(irowsDiff)...)
irowsCleanup := append(irowsFound, irowsDiff...)
args := ovnutil.OvnNbctlArgsDestroy(irowsCleanup)
return false, args
}