[PATCH 1/2] Introduce replication_connect_timeout configuration option
Vladimir Davydov
vdavydov.dev at gmail.com
Thu Feb 15 13:09:52 MSK 2018
On Wed, Feb 14, 2018 at 08:29:14PM +0300, Vladimir Davydov wrote:
> +static double
> +box_check_replication_connect_timeout(void)
> +{
> + double timeout = cfg_getd("replication_connect_timeout");
> + if (timeout <= 0) {
> + tnt_raise(ClientError, ER_CFG, "replication_connect_timeout",
> + "the value must be greather than 0");
> + }
> + return timeout;
> +}
We should probably allow to set replication_connect_timeout to 0 so that
box.cfg() could be instructed to connect asynchronously without even
trying to form a quorum. Konstantin, what do you think?
More information about the Tarantool-patches
mailing list