getMaxmemoryState() fixed and improved.

This commit is contained in:
antirez
2018-04-11 12:48:26 +02:00
parent f97efe0cac
commit de7de53e64
3 changed files with 38 additions and 13 deletions

View File

@ -1369,7 +1369,7 @@ int RM_GetContextFlags(RedisModuleCtx *ctx) {
}
/* OOM flag. */
if (getMaxmemoryState(NULL,NULL,NULL) == C_ERR) {
if (getMaxmemoryState(NULL,NULL,NULL,NULL) == C_ERR) {
flags |= REDISMODULE_CTX_FLAGS_OOM;
}