ovsdb: separate json cache for different monitor versions
authorHan Zhou <zhouhan@gmail.com>
Fri, 18 Dec 2015 06:23:22 +0000 (22:23 -0800)
committerAndy Zhou <azhou@ovn.org>
Fri, 18 Dec 2015 22:40:03 +0000 (14:40 -0800)
commita32b4433573ebea26cf3be75446addd029155382
tree666cb9ccb7600b0485fdc445336397ea575a7e85
parent8ab1170b06ddf33dfb06b0346d21f2e4380d8eea
ovsdb: separate json cache for different monitor versions

Cached json objects were reused when sending notifications to
clients. This created a problem when there were different versions
of monitors coexisting. E.g. clients expecting version2 notification
would receive messages with method == "update2" but payload in
version1 format, which end up failure of processing the updates.

This patch fixes the issue by including version in cache node.

Signed-off-by: Han Zhou <zhouhan@gmail.com>
Acked-by: Andy Zhou <azhou@ovn.org>
Signed-off-by: Andy Zhou <azhou@ovn.org>
ovsdb/monitor.c