[ovs-dev] [ovsdb monitor fix v2 1/3] ovsdb: Fix one off error in tracking monitor changes

Ben Pfaff blp at ovn.org
Wed Feb 24 22:40:45 UTC 2016


On Mon, Feb 22, 2016 at 04:28:12PM -0800, Andy Zhou wrote:
> dbmon's changes should be stored with the next transaction number,
> rather than the current transaction number.  This bug causes the
> changes of a transaction stored in a monitor to be unnoticed by
> the jsonrpc connections that is responsible for flush the monitor
> content.
> 
> However, the bug was not noticed until it was exposed by a later
> optimization patch: "avoid unnecessary call to ovsdb_monitor_get_update()."
> The lack of optimization means that the update is still generated
> when 'unflushed' equals to n_transactions + 1, which should have
> indicated the monitor has been flushed already.
> 
> Signed-off-by: Andy Zhou <azhou at ovn.org>
> 
> ---
> v1->v2:
>      *Explain the bug in more detail in the commit message.
>      *roll back the n_transactions if possible.

Acked-by: Ben Pfaff <blp at ovn.org>



More information about the dev mailing list