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:58:58 +0000 (13:58 -0800)
commit21eb4d8e05a5f0f58245bf9850239f9842ccbf2c
treef6d58e3163d63dbfa725b0bbfb70c657a5ab7d52
parentbeb010bf504f70b561b1ae8cd6da5e5e35b34d5f
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