[Tarantool-patches] [PATCH v4 1/3] gc/xlog: delay xlog cleanup until relays are subscribed

Cyrill Gorcunov gorcunov at gmail.com
Fri Mar 26 00:29:59 MSK 2021


On Fri, Mar 26, 2021 at 12:02:56AM +0300, Cyrill Gorcunov wrote:
> 
> then it passed into C level as 0x7fffffffffffffff
> which is NaN in ieee-754.
> 
> 2021-03-25 23:53:45.588 [2068763] main/103/interactive I> set 'wal_cleanup_delay' configuration option to inf

I changed the code to

static double
box_check_wal_cleanup_delay(void)
{
	double value = cfg_getd("wal_cleanup_delay");
	if (isfinite(value) == 0 && value >= 0) {
		diag_set(ClientError, ER_CFG, "wal_cleanup_delay",
			 "value must be finite and >= 0");
		return -1;
	}

	return value;
}

 | tarantool> box.cfg{wal_cleanup_delay = math.huge}
 | ---
 | - error: 'Incorrect value for option ''wal_cleanup_delay'': value must be finite and
 |     >= 0'
 | ...



More information about the Tarantool-patches mailing list