changed init logic of redis backend as per review request

This commit is contained in:
Talkabout 2020-04-01 13:32:13 +02:00
parent c25eb2c4c8
commit e7b45298c1

View file

@ -130,12 +130,12 @@ redis_init(struct module_env* env, struct cachedb_env* cachedb_env)
redis_reply_type = rep->type;
freeReplyObject(rep);
switch (redis_reply_type) {
case REDIS_REPLY_ERROR:
case REDIS_REPLY_STATUS:
break;
default:
/** init failed, setex command not supported */
log_err("redis_init: failed to init redis, the redis-expire-records option requires the SETEX command (redis >= 2.0.0)");
return 0;
default:
break;
}
}