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

This commit is contained in:
antirez 2009-10-31 23:03:10 +01:00
parent 71eba4775d
commit 412a8bcea3
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -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();