From fa5e934e47c01876f364b5f65ef5d91379a16f20 Mon Sep 17 00:00:00 2001 From: Malavan Sotheeswaran Date: Tue, 30 Nov 2021 12:20:13 -0500 Subject: [PATCH] missing false for return in prefetchKeysAsync Former-commit-id: 174dc44acdc1a8cb37b86f27ab056e14fc42770c --- src/db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.cpp b/src/db.cpp index 5dfd6b635..163c12468 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -3247,7 +3247,7 @@ bool redisDbPersistentData::prefetchKeysAsync(client *c, parsed_command &command const char *cmd = szFromObj(command.argv[0]); if (!strcasecmp(cmd, "set") || !strcasecmp(cmd, "get")) { if (c->db->m_spdbSnapshotHOLDER != nullptr) - return; // this is dangerous enough without a snapshot around + return false; // this is dangerous enough without a snapshot around auto h = dictSdsHash(szFromObj(command.argv[1])); for (int iht = 0; iht < 2; ++iht) { auto hT = h & c->db->m_pdict->ht[iht].sizemask;