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
d2ca4bb6
Commit
d2ca4bb6
authored
Apr 03, 2014
by
antirez
Browse files
Return "WRONGTYPE" error on PF* type mismatch.
parent
349c9781
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hyperloglog.c
View file @
d2ca4bb6
...
...
@@ -464,7 +464,9 @@ int isHLLObjectOrReply(redisClient *c, robj *o) {
/* If this is a string representing an HLL, the size should match
* exactly. */
if
(
stringObjectLen
(
o
)
!=
REDIS_HLL_SIZE
)
{
addReplyErrorFormat
(
c
,
"Key is not a valid HyperLogLog string value."
);
addReplySds
(
c
,
sdsnew
(
"-WRONGTYPE Key is not a valid "
"HyperLogLog string value.
\r\n
"
));
return
REDIS_ERR
;
}
return
REDIS_OK
;
...
...
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