lib: avoid set size check when generating diff datum from json
authorAndy Zhou <azhou@nicira.com>
Wed, 14 Oct 2015 23:57:52 +0000 (16:57 -0700)
committerAndy Zhou <azhou@ovn.org>
Fri, 11 Dec 2015 22:22:32 +0000 (14:22 -0800)
commitaefd97b779035f83369723b129f14c80364e5f1e
tree21d742147566f10423694512ec70ab877d4c3558
parent6cef8e87b3237d3233a6696844e41f5c614aae17
lib: avoid set size check when generating  diff datum from json

Added ovsdb_transient_datum_from_json() to avoid size check for
the diff datum that is transient in nature.
Suppose a datum contains set, and the max number of elements is 2.
If we are changing from set that contains [A, B], to a set contains
[C, D], the diff datum will contains 4 elements [A, B, C, D].

Thus diff datum should not be constrained by the size limit. However
the datum after diff is applied should not violate the size limit.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/ovsdb-data.c
lib/ovsdb-data.h