mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Return "WRONGTYPE" error on PF* type mismatch.
This commit is contained in:
parent
349c978189
commit
d2ca4bb62d
@ -464,7 +464,9 @@ int isHLLObjectOrReply(redisClient *c, robj *o) {
|
|||||||
/* If this is a string representing an HLL, the size should match
|
/* If this is a string representing an HLL, the size should match
|
||||||
* exactly. */
|
* exactly. */
|
||||||
if (stringObjectLen(o) != REDIS_HLL_SIZE) {
|
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_ERR;
|
||||||
}
|
}
|
||||||
return REDIS_OK;
|
return REDIS_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user