ovsdb-monitor: add ovsdb_monitor_changes
authorAndy Zhou <azhou@nicira.com>
Fri, 13 Mar 2015 23:35:49 +0000 (16:35 -0700)
committerAndy Zhou <azhou@nicira.com>
Sat, 30 May 2015 00:45:15 +0000 (17:45 -0700)
commit1158f320622954f4027a35260916f6a950529c27
tree9721ac018aeb699da51527a59877a37fe9abf34c
parentf1de87bb2f568ad126e77e85746ce63376ff0bd5
ovsdb-monitor: add ovsdb_monitor_changes

Currently, each monitor table contains a single hmap 'changes' to
track updates. This patch introduces a new data structure
'ovsdb_monitor_changes' that stores the updates 'rows' tagged by
its first commit transaction id. Each 'ovsdb_monitor_changes' is
refenece counted allowing multiple jsonrpc_monitors to share them.

The next patch will allow each ovsdb monitor table to store a list
of 'ovsdb_monitor_changes'. This patch stores only one, same as
before.

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