From 1a9dc0d3120b9e31fffd1f03a40c5217dbcd5163 Mon Sep 17 00:00:00 2001 From: malavan Date: Thu, 23 Sep 2021 19:57:18 +0000 Subject: [PATCH] add async lookup to hmget Former-commit-id: a967b47b60e3f4efbc945dc44a0903f47e07993f --- src/server.cpp | 2 +- src/t_hash.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index 3de23c0bb..117ecbb39 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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, diff --git a/src/t_hash.cpp b/src/t_hash.cpp index 3f2cc5751..e724e406e 100644 --- a/src/t_hash.cpp +++ b/src/t_hash.cpp @@ -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);