mirror of
https://github.com/fluencelabs/redis
synced 2025-06-21 21:11:33 +00:00
Return error to client on wrong type for HMGET
This commit is contained in:
@ -310,6 +310,7 @@ void hmgetCommand(redisClient *c) {
|
||||
o = lookupKeyRead(c->db,c->argv[1]);
|
||||
if (o != NULL && o->type != REDIS_HASH) {
|
||||
addReply(c,shared.wrongtypeerr);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Note the check for o != NULL happens inside the loop. This is
|
||||
|
Reference in New Issue
Block a user