Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
412a8bce
Commit
412a8bce
authored
Oct 31, 2009
by
antirez
Browse files
Fixed Issue 83:Using TYPE on a zset results in a malformed response from the Redis server
parent
71eba477
Changes
2
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
412a8bce
...
...
@@ -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
;
}
}
...
...
zmalloc.c
View file @
412a8bce
...
...
@@ -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 %
l
u bytes
\n
"
,
fprintf
(
stderr
,
"zmalloc: Out of memory trying to allocate %
z
u bytes
\n
"
,
size
);
fflush
(
stderr
);
abort
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment