[ovs-dev] [PATCH] ovsdb: separate json cache for different monitor versions

Ben Pfaff blp at ovn.org
Wed Dec 16 04:24:41 UTC 2015


On Tue, Dec 15, 2015 at 07:06:34PM -0800, Han Zhou wrote:
> Cached json objects were reused when sending notifications to
> clients. This created a problem when there were different versions
> of monitors coexiting. 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 using dedicated cache for each version.
> 
> Signed-off-by: Han Zhou <zhouhan at gmail.com>

Looks good at a quick skim.

Andy, will you review this?



More information about the dev mailing list