Fixed Issue 83:Using TYPE on a zset results in a malformed response from the Redis server
This commit is contained in:
parent
71eba4775d
commit
412a8bcea3
1
redis.c
1
redis.c
@ -3105,6 +3105,7 @@ static void typeCommand(redisClient *c) {
|
|||||||
case REDIS_STRING: type = "+string"; break;
|
case REDIS_STRING: type = "+string"; break;
|
||||||
case REDIS_LIST: type = "+list"; break;
|
case REDIS_LIST: type = "+list"; break;
|
||||||
case REDIS_SET: type = "+set"; break;
|
case REDIS_SET: type = "+set"; break;
|
||||||
|
case REDIS_ZSET: type = "+zset"; break;
|
||||||
default: type = "unknown"; break;
|
default: type = "unknown"; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
static size_t used_memory = 0;
|
static size_t used_memory = 0;
|
||||||
|
|
||||||
static void zmalloc_oom(size_t size) {
|
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);
|
size);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
abort();
|
abort();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user