ovsdb: Check ovsdb_mutation_set_execute() return value in transactions.
authorBen Pfaff <blp@nicira.com>
Tue, 31 May 2011 19:50:57 +0000 (12:50 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 31 May 2011 20:52:03 +0000 (13:52 -0700)
commit1b807595c4e6b4348444852bda8814e92412ad41
treed93d1507dd1ff12bcaf73fd0ac8f7bacaa64dc83
parent0066b6033e84752dff92b4ac991e8da662c5061f
ovsdb: Check ovsdb_mutation_set_execute() return value in transactions.

Errors from this function were being ignored, which meant that transactions
could use "mutate" to bypass number-of-elements constraints on sets and
maps.  This fixes the problem and adds a test to prevent the problem from
recurring.

Bug #5781.
ovsdb/execution.c
ovsdb/mutation.h
tests/ovsdb-execution.at