MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _Config_check_if_new_timeout_used

Function _Config_check_if_new_timeout_used

src/configuration/config.c:197–207  ·  view source on GitHub ↗

check if new(TIMEOUT_DEFAULT or TIMEOUT_MAX) are used log a deprecation message

Source from the content-addressed store, hash-verified

195// check if new(TIMEOUT_DEFAULT or TIMEOUT_MAX) are used
196// log a deprecation message
197static bool _Config_check_if_new_timeout_used() {
198 bool new_timeout_set = config.timeout_default != CONFIG_TIMEOUT_NO_TIMEOUT;
199 new_timeout_set |= config.timeout_max != CONFIG_TIMEOUT_NO_TIMEOUT;
200
201 if(new_timeout_set) {
202 RedisModule_Log(NULL, "warning", "The TIMEOUT configuration parameter is deprecated. Please set TIMEOUT_MAX and TIMEOUT_DEFAULT instead");
203 return false;
204 }
205
206 return true;
207}
208
209static bool Config_enforce_timeout_max
210(

Callers 1

Config_Option_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected