提交 412a8bce 编写于 作者: A antirez

Fixed Issue 83:Using TYPE on a zset results in a malformed response from the Redis server

上级 71eba477
......@@ -3105,6 +3105,7 @@ static void typeCommand(redisClient *c) {
case REDIS_STRING: type = "+string"; break;
case REDIS_LIST: type = "+list"; break;
case REDIS_SET: type = "+set"; break;
case REDIS_ZSET: type = "+zset"; break;
default: type = "unknown"; break;
}
}
......
......@@ -42,7 +42,7 @@
static size_t used_memory = 0;
static void zmalloc_oom(size_t size) {
fprintf(stderr, "zmalloc: Out of memory trying to allocate %lu bytes\n",
fprintf(stderr, "zmalloc: Out of memory trying to allocate %zu bytes\n",
size);
fflush(stderr);
abort();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册