cfg: rework box_check_replication_synchro_quorum
Currently the box_check_replication_synchro_quorum helper
test for "replication_synchro_quorum" value being valid
and returns the value itself to use later in code.
This is fine for regular numbers but since we're gonna
support formula evaluation the real value to use will
be dynamic and returning a number "to use" won't be
convenient.
Thus lets change the context: make
box_check_replication_synchro_quorum() to return 0|-1
for success|failure and when the real value is needed
we will fetch it explicitly via cfg_geti call.
To make this more explicit the real update of the
appropriate variable is done via
box_update_replication_synchro_quorum() helper.
Part-of #5446
Signed-off-by:
Cyrill Gorcunov <gorcunov@gmail.com>
Please register or sign in to comment