check if new(TIMEOUT_DEFAULT or TIMEOUT_MAX) are used log a deprecation message
| 195 | // check if new(TIMEOUT_DEFAULT or TIMEOUT_MAX) are used |
| 196 | // log a deprecation message |
| 197 | static 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 | |
| 209 | static bool Config_enforce_timeout_max |
| 210 | ( |