mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 08:00:49 +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
|
||||
* 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user