Skip to content

Commit

Permalink
Avoid 0 size batches
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSully committed Sep 25, 2023
1 parent cdc5e8f commit 71b92e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3399,6 +3399,9 @@ void redisDbPersistentData::prefetchKeysFlash(std::unordered_set<client*> &setc)
}
}

if (veckeys.empty())
return;

auto *tok = m_spstorage->begin_retrieve(serverTL->el, storageLoadCallback, veckeys.data(), veckeys.size());
if (tok != nullptr) {
for (client *c : setcBlocked) {
Expand Down

0 comments on commit 71b92e7

Please sign in to comment.