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:55:32 +0000 (13:55 -0800)
commitd2388fdd8251be6cd5dcc6b90be38c78bafd847d
treeda64df06af74b4c038529364585a6729c1d7a298
parent448c5c91c518b52c13ca4944f23d8f2504320631
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