On Tue, Nov 10, 2015 at 9:45 AM, Ben Pfaff <b...@ovn.org> wrote: > On Wed, Oct 21, 2015 at 09:45:30PM -0700, Andy Zhou wrote: >> Add support for monitor2. When idl starts to run, monitor2 will be >> attempted first. In case the server is an older version that does >> not recognize monitor2. IDL will then fall back to use "monitor" >> method. >> >> Signed-off-by: Andy Zhou <az...@nicira.com> > > This is pretty clean, thanks! > > In the error case here, it could be worthwhile to check that the > msg->id matches idl->request_id: > > } else if (msg->type == JSONRPC_ERROR > && idl->state == IDL_S_MONITOR2_REQUESTED) { > > Thanks for the suggestion. Folded this into V2.
> At a glance, it looks like there's a lot of code duplication between the > new and the old update implementation. Can any of it be cleanly > factored out? > O.K. I merged ovsdb_idl_parse_upate__() and ovsdb_idl_parse_update2__() into a single function to reduce code duplication. Please let me know if v2 looks better. > This adds an extra blank line above ovsdb_idl_update_has_lock(). Removed _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev