2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 01:51:26 +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:
Max Lamprecht 2025-04-03 16:59:05 +02:00 committed by Ilya Maximets
parent f1f214e5c3
commit a53d67bf93

View File

@ -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