The first patch in this series fixes an issue found while testing the
second patch, namely that although the C IDL handles inserting a row
witout modifying any columns, the Python IDL did not.

The second patch handles the case when there is a relationship between
two rows in a transaction where one of the rows was created with
the persist_uuid option. Without the patch, ops in the transaction
that refer to the newly inserted row would try to refer to it via a
'named-uuid' when persist_uuid inserts don't not have one, but instead
have a 'uuid'.

During testing of the second patch, it was discovered that
ovsdb_idl_check_consistency() doesn't properly handle references
when called before commit(), so that is worked around pending
a fix.

Terry Wilson (2):
  python: ovsdb-idl: Handle inserts w/o changes.
  python: ovsdb-idl Fix persist_uuid references.

 python/ovs/db/idl.py |  4 ++--
 tests/ovsdb-idl.at   | 21 +++++++++++++++++++--
 tests/test-ovsdb.c   | 30 +++++++++++++++++++++++++++++-
 tests/test-ovsdb.py  | 13 +++++++++++++
 4 files changed, 63 insertions(+), 5 deletions(-)

-- 
2.47.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to