[ovs-dev] Use next_cfg/cur_cfg in the presence of more than one client
blp at nicira.com
Fri Aug 28 15:41:57 UTC 2015
On Fri, Aug 28, 2015 at 08:33:23AM -0700, Ashwin Paranjpe wrote:
> I have a few questions about the following commit:
> - What would happen if there are two clients and both of them increment the
> next_cfg to the same value?
> I'd imagine the operation won’t be atomic, so this would be possible. One
> of the clients would incorrectly conclude that vswitchd has applied its
> configuration changes; Is my understanding correct?
> - Is there any way we can guarantee correctness in the presence of more
> than 1 client?
The increment is atomic.
More information about the dev