add async lookup to hmget
Former-commit-id: a967b47b60e3f4efbc945dc44a0903f47e07993f
This commit is contained in:
parent
d502437cf3
commit
1a9dc0d312
@ -607,7 +607,7 @@ struct redisCommand redisCommandTable[] = {
|
|||||||
0,NULL,1,1,1,0,0,0},
|
0,NULL,1,1,1,0,0,0},
|
||||||
|
|
||||||
{"hmget",hmgetCommand,-3,
|
{"hmget",hmgetCommand,-3,
|
||||||
"read-only fast @hash",
|
"read-only fast async @hash",
|
||||||
0,NULL,1,1,1,0,0,0},
|
0,NULL,1,1,1,0,0,0},
|
||||||
|
|
||||||
{"hincrby",hincrbyCommand,4,
|
{"hincrby",hincrbyCommand,4,
|
||||||
|
@ -812,7 +812,7 @@ void hmgetCommand(client *c) {
|
|||||||
|
|
||||||
/* Don't abort when the key cannot be found. Non-existing keys are empty
|
/* Don't abort when the key cannot be found. Non-existing keys are empty
|
||||||
* hashes, where HMGET should respond with a series of null bulks. */
|
* hashes, where HMGET should respond with a series of null bulks. */
|
||||||
o = lookupKeyRead(c->db, c->argv[1]);
|
o = lookupKeyRead(c->db, c->argv[1], c->mvccCheckpoint);
|
||||||
if (checkType(c,o,OBJ_HASH)) return;
|
if (checkType(c,o,OBJ_HASH)) return;
|
||||||
|
|
||||||
addReplyArrayLen(c, c->argc-2);
|
addReplyArrayLen(c, c->argc-2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user