[Tarantool-patches] [PATCH v2] box: make instace ro while limbo is not empty

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Tue Dec 1 00:22:17 MSK 2020


Hi! Thanks for the patch!

On 30.11.2020 10:35, Serge Petrenko via Tarantool-patches wrote:
> Users usually use box.ctl.wait_rw() to determine the moment when the
> instance becomes writeable.
> Since the synchronous replication introduction, this function became
> pointless, because even when an instance is writeable, it may fail at
> writing something because its limbo is not empty.
> To fix the problem introduce a new helper, txn_limbo_is_ro() and start
> using it in box_update_ro_summary().
> Call bax_update_ro_summary() every time the limbo gets emptied out or

bax -> box.

> changes an owner.
> 
> Closes #5440
Sasha (Tikh.), please, validate the branch is good to push.


More information about the Tarantool-patches mailing list