]> git.proxmox.com Git - ovs.git/commit
ovsdb-server: drop all connections on read/write status change
authorDaniel Alvarez <dalvarez@redhat.com>
Tue, 9 Jul 2019 10:16:30 +0000 (12:16 +0200)
committerBen Pfaff <blp@ovn.org>
Wed, 10 Jul 2019 20:05:56 +0000 (13:05 -0700)
commit2a9679e3b2c6fde74ddae362d88ba16db7fbfc38
treed5bf4101c1e6f8ea94766ed78bc7cfe334f5ea50
parent183b5bba434d7e1d8f3eef9565ad0ca06d28dfad
ovsdb-server: drop all connections on read/write status change

Prior to this patch, only db change aware connections were dropped
on a read/write status change. However, current schema in OVN does
not allow clients to monitor whether a particular DB changes this
status. In order to accomplish this, we'd need to change the schema
and adapting ovsdb-server and existing clients.

Before tackling that, this patch is changing ovsdb-server to drop
*all* the existing connections upon a read/write status change. This
will force clients to reconnect and honor the change.

Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2019-July/048981.html
Signed-off-by: Daniel Alvarez <dalvarez@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovsdb/jsonrpc-server.c
tests/ovn.at