ovsdb-server: fix monitor counters reported by memory/show
authorAndy Zhou <azhou@ovn.org>
Thu, 4 Feb 2016 04:57:32 +0000 (20:57 -0800)
committerAndy Zhou <azhou@ovn.org>
Fri, 5 Feb 2016 22:03:20 +0000 (14:03 -0800)
commite0c73ed1310554d9326adbc54e1dd279e1ae8c1f
tree98f8c556beb9b2df953d4e323331945122237f2e
parent9aad5a5a96bac423b05b5bb3afb7add2df44bba9
ovsdb-server: fix monitor counters reported by memory/show

Commit 4c2809787cdbc774 (ovsdb-monitor: add json cache) introduced
an optimization that allows jsonrpc session to share monitors.
However, the memory/show implementation was not updated to match the
implementation; it still assumes that each jsonrpc session uses its
own monitor, thus are likely to over reporting the number.

This patch fix the bug and reports the actual number of monitor used
by the ovsdb-server.

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