[server 5/5] replication: introduce orphan mode

Vladimir Davydov vdavydov.dev at gmail.com
Mon Jan 29 14:14:09 MSK 2018


On Wed, Jan 24, 2018 at 08:44:54PM +0300, Vladimir Davydov wrote:
> +static double
> +box_check_replication_sync_lag(void)
> +{
> +	double lag = cfg_getd_default("replication_sync_lag", TIMEOUT_INFINITY);
> +	if (lag < 0) {

Should be <= 0, obviously, as 0 lag is unfeasible. Fixed on the branch.

> +		tnt_raise(ClientError, ER_CFG, "replication_sync_lag",
> +			  "the value must be greater or equal to 0");
> +	}
> +	return lag;
> +}



More information about the Tarantool-patches mailing list