[Tarantool-patches] [PATCH] feedback_daemon: add synchro replication usage reporting
Cyrill Gorcunov
gorcunov at gmail.com
Tue Oct 13 17:01:55 MSK 2020
On Tue, Oct 13, 2020 at 04:34:18PM +0300, Serge Petrenko wrote:
>
> +local function fill_in_options(feedback)
> + local options = {}
> + options.election_mode = box.cfg.election_mode
> + options.synchro_quorum = box.cfg.replication_synchro_quorum
> + feedback.options = options
> +end
Maybe be we could just get rid of local variable here?
local function fill_in_options(feedback)
feedback.options = {
['election_mode'] = box.cfg.election_mode,
['synchro_quorum'] = box.cfg.replication_synchro_quorum,
}
end
Not insisting at all just a thought.
More information about the Tarantool-patches
mailing list