[Tarantool-patches] [PATCH v2 12/11] error: introduce box.info.ro_reason

Serge Petrenko sergepetrenko at tarantool.org
Mon Nov 15 09:53:32 MSK 2021


13.11.2021 02:25, Vladislav Shpilevoy пишет:
>      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.
> ---

Thanks for the patch!
LGTM.

> diff --git a/changelogs/unreleased/gh-5568-readonly-reason.md b/changelogs/unreleased/gh-5568-readonly-reason.md
> index f3a2db986..d2985eede 100644
> --- a/changelogs/unreleased/gh-5568-readonly-reason.md
> +++ b/changelogs/unreleased/gh-5568-readonly-reason.md
...

-- 
Serge Petrenko



More information about the Tarantool-patches mailing list