ovsdb: Flush JSON cache only when necessary
authorAndy Zhou <azhou@nicira.com>
Thu, 11 Jun 2015 00:24:08 +0000 (17:24 -0700)
committerAndy Zhou <azhou@nicira.com>
Wed, 24 Jun 2015 00:07:07 +0000 (17:07 -0700)
commita0cba5c2f1040a7708a2a795461e5b9285161f65
treeb36aa2196b740d2b3f984d87b6cb49b608e30e29
parent58de87cc8e228abde0bb4c0072ea95b38e7e8c8a
ovsdb: Flush JSON cache only when necessary

Currently, JSON cache is always flushed whenever the monitor receives
a transaction. This patch improves the JSON cache efficiency by only
flush the JSON cache when a transaction causes client visible
changes, avoiding unnecessary flushes.

Suggested-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ovsdb/monitor.c