mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
ovsdb-idl: Check prerequisites for ovsdb_idl_txn_verify() also.
The IDL can only verify prerequisites for columns that it is monitoring, but it didn't check for that. This assertion (which is the same as one in ovsdb_idl_txn_write()) should alert us to such problems. This would have found the problem fixed by the previous commit.
This commit is contained in:
@@ -1693,6 +1693,8 @@ ovsdb_idl_txn_verify(const struct ovsdb_idl_row *row_,
|
|||||||
size_t column_idx = column - class->columns;
|
size_t column_idx = column - class->columns;
|
||||||
|
|
||||||
assert(row->new != NULL);
|
assert(row->new != NULL);
|
||||||
|
assert(row->old == NULL ||
|
||||||
|
row->table->modes[column_idx] & OVSDB_IDL_MONITOR);
|
||||||
if (!row->old
|
if (!row->old
|
||||||
|| (row->written && bitmap_is_set(row->written, column_idx))) {
|
|| (row->written && bitmap_is_set(row->written, column_idx))) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user