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;