mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 09:58:01 +00:00
python: idl: Clear rows without losing indexes.
Previously the complete table.rows object was recreated, which caused the loss of custom indexes. This behavior is now consistent with the C implementation. See discussion [0] for more details. [0] https://patchwork.ozlabs.org/project/openvswitch/patch/Z64R_bZhCDcYsHom@SIT-SDELAP1634.int.lidl.net/ Fixes: 13973bc41524 ("Add multi-column index support for the Python IDL") Signed-off-by: Max Lamprecht <max.lamprecht@stackit.cloud> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
parent
f1f214e5c3
commit
a53d67bf93
@ -796,7 +796,7 @@ class Idl(object):
|
||||
for table in self.tables.values():
|
||||
if table.rows:
|
||||
changed = True
|
||||
table.rows = custom_index.IndexedRows(table)
|
||||
table.rows.clear()
|
||||
|
||||
self.cond_seqno = 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user