box.info.ro_reason
-
box.info.
ro_reason
¶ Since 2.10.0. Show the current mode of an instance (writable or read-only). Contains
nil
if the instance is in writable mode. When the field is notnil
, reports the reason why the instance is read-only.Possible error reasons:
election
– the instance is not the leader. That is,box.cfg.election_mode
is notoff
. See box.info.election for details.synchro
– the instance is not the owner of the synchronous transaction queue. For details, see box.info.synchro.config
– the server instance is in read-only mode. That is, box.cfg.read_only istrue
.orphan
– the instance is inorphan
state. For details, see the orphan status page.
Rtype: string Example:
tarantool> box.info.ro_reason --- - null ...