ovsdb: Correctly implement conditions that include multiple clauses.
authorBen Pfaff <blp@nicira.com>
Wed, 16 Nov 2011 22:38:52 +0000 (14:38 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 28 Nov 2011 21:26:19 +0000 (13:26 -0800)
commit40f280c781639c24176e054abc20bb7270da9e7a
tree2e783bb28e3b66c9141970a97e5d5b1a30cddedc
parent2c8fcc9cd6a7bbb948f6c79879e89c7ed791c9b1
ovsdb: Correctly implement conditions that include multiple clauses.

Multiple-clause conditions in OVSDB operations with "where" clauses are
supposed to be conjunctions, that is, the condition is true only if every
clause is true.  In fact, the implementation only checked a single clause
(not necessarily the first one) and ignored the rest.  This fixes the
problem and adds test coverage for multiple-clause conditions.

Reported-by: Shih-Hao Li <shli@nicira.com>
ovsdb/condition.c
tests/ovsdb-condition.at