missing false for return in prefetchKeysAsync

Former-commit-id: 174dc44acdc1a8cb37b86f27ab056e14fc42770c
This commit is contained in:
Malavan Sotheeswaran 2021-11-30 12:20:13 -05:00
parent ac1775b8a6
commit fa5e934e47

View File

@ -3247,7 +3247,7 @@ bool redisDbPersistentData::prefetchKeysAsync(client *c, parsed_command &command
const char *cmd = szFromObj(command.argv[0]); const char *cmd = szFromObj(command.argv[0]);
if (!strcasecmp(cmd, "set") || !strcasecmp(cmd, "get")) { if (!strcasecmp(cmd, "set") || !strcasecmp(cmd, "get")) {
if (c->db->m_spdbSnapshotHOLDER != nullptr) 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])); auto h = dictSdsHash(szFromObj(command.argv[1]));
for (int iht = 0; iht < 2; ++iht) { for (int iht = 0; iht < 2; ++iht) {
auto hT = h & c->db->m_pdict->ht[iht].sizemask; auto hT = h & c->db->m_pdict->ht[iht].sizemask;