提交 d2ca4bb6 编写于 作者: A antirez

Return "WRONGTYPE" error on PF* type mismatch.

上级 349c9781
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册