Message ID | 1470268625-69697-3-git-send-email-azhou@ovn.org |
---|---|
State | Accepted |
Headers | show |
On Wed, Aug 03, 2016 at 04:57:04PM -0700, Andy Zhou wrote: > Found by inspection > > Signed-off-by: Andy Zhou <azhou@ovn.org> It's not obvious from the context that this can cause a problem, but I think it's safe in any case. Acked-by: Ben Pfaff <blp@ovn.org>
On Sat, Aug 13, 2016 at 10:14 PM, Ben Pfaff <blp@ovn.org> wrote: > On Wed, Aug 03, 2016 at 04:57:04PM -0700, Andy Zhou wrote: > > Found by inspection > > > > Signed-off-by: Andy Zhou <azhou@ovn.org> > > It's not obvious from the context that this can cause a problem, but I > think it's safe in any case. > > Acked-by: Ben Pfaff <blp@ovn.org> > Thanks, It happens to fix a real bug, as discussed at: http://openvswitch.org/pipermail/discuss/2016-August/022322.html I will add the reference to the commit message.
diff --git a/ovsdb/replication.c b/ovsdb/replication.c index 19626a5..de6eec1 100644 --- a/ovsdb/replication.c +++ b/ovsdb/replication.c @@ -150,6 +150,7 @@ void disconnect_active_server(void) { jsonrpc_close(rpc); + rpc = NULL; sset_clear(&monitored_tables); sset_clear(&tables_blacklist); } @@ -157,7 +158,7 @@ disconnect_active_server(void) void destroy_active_server(void) { - jsonrpc_close(rpc); + disconnect_active_server(); sset_destroy(&monitored_tables); sset_destroy(&tables_blacklist);
Found by inspection Signed-off-by: Andy Zhou <azhou@ovn.org> --- ovsdb/replication.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)