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:46:00 +0000 (13:46 -0700)
commitb7585d1dffe140a0271ba52acb72493fe6f518a1
tree89fffb6c39db7d62bf3f5ab9444720368b413794
parentdd089894cacbf11f0e9359f52ecd2923b627ba90
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