error: introduce box.info.ro_reason
Follow-up #5568 @TarantoolBot document Title: box.info.ro_reason The new `box.info` field - `ro_reason` - is `nil` on a writable instance. On a read-only instance `box.info.ro == true` it reports an error reason. Currently the list is - `'election'` - `box.cfg.election_mode` is not `'off'` and this instance is not a leader. See `box.info.election` for details. - `'synchro'` - the synchro queue is owned by some other instance. For details see `box.info.synchro`. - `'config'` - `box.cfg.read_only` is true; - `'orphan'` - the instance is in orphan state.
Showing
- changelogs/unreleased/gh-5568-readonly-reason.md 3 additions, 1 deletionchangelogs/unreleased/gh-5568-readonly-reason.md
- src/box/box.cc 18 additions, 8 deletionssrc/box/box.cc
- src/box/box.h 7 additions, 0 deletionssrc/box/box.h
- src/box/lua/info.c 9 additions, 0 deletionssrc/box/lua/info.c
- test/replication-luatest/gh_5568_read_only_reason_test.lua 25 additions, 0 deletionstest/replication-luatest/gh_5568_read_only_reason_test.lua
Loading
Please register or sign in to comment