Skip to content
Snippets Groups Projects
Commit 48185e86 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy
Browse files

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.
parent 39a462e0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment