mirror of
http://github.com/valkey-io/valkey
synced 2024-11-23 20:00:00 +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…
Reference in New Issue
Block a user