[PATCH v2 0/2] Make box.once() wait until instance enters rw mode
Vladimir Davydov
vdavydov.dev at gmail.com
Thu Feb 1 20:35:04 MSK 2018
Branch: box-once-wait-rw
Issue: https://github.com/tarantool/tarantool/issues/2537
Changes in v2:
- Introduce box.info.ro.wait() to wait for read-write mode and use
it in box.once() instead of checking box.info.ro in a loop.
Vladimir Davydov (2):
Add function to wait for box.info.ro change
Make box.once() wait until instance enters rw mode
src/box/box.cc | 21 ++++++++++++
src/box/box.h | 10 ++++++
src/box/lua/info.c | 30 ++++++++++++++++
src/box/lua/schema.lua | 1 +
test/box/info.result | 78 ++++++++++++++++++++++++++++++++++++++++++
test/box/info.test.lua | 29 ++++++++++++++++
test/replication/once.result | 48 ++++++++++++++++++++++++++
test/replication/once.test.lua | 18 ++++++++++
8 files changed, 235 insertions(+)
--
2.11.0
More information about the Tarantool-patches
mailing list