add async lookup to hmget

Former-commit-id: a967b47b60e3f4efbc945dc44a0903f47e07993f
This commit is contained in:
malavan 2021-09-23 19:57:18 +00:00
parent d502437cf3
commit 1a9dc0d312
2 changed files with 2 additions and 2 deletions

View File

@ -607,7 +607,7 @@ struct redisCommand redisCommandTable[] = {
0,NULL,1,1,1,0,0,0},
{"hmget",hmgetCommand,-3,
"read-only fast @hash",
"read-only fast async @hash",
0,NULL,1,1,1,0,0,0},
{"hincrby",hincrbyCommand,4,

View File

@ -812,7 +812,7 @@ void hmgetCommand(client *c) {
/* 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. */
o = lookupKeyRead(c->db, c->argv[1]);
o = lookupKeyRead(c->db, c->argv[1], c->mvccCheckpoint);
if (checkType(c,o,OBJ_HASH)) return;
addReplyArrayLen(c, c->argc-2);