mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05: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