Skip to content

Commit

Permalink
fix:delete logs (OpenAtomFoundation#2840)
Browse files Browse the repository at this point in the history
Co-authored-by: chejinge <[email protected]>
  • Loading branch information
chejinge and brother-jin authored Aug 2, 2024
1 parent 23cf007 commit 3c7b6b3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/pika_cache_load_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ bool PikaCacheLoadThread::LoadHash(std::string& key, const std::shared_ptr<DB>&
int32_t len = 0;
db->storage()->HLen(key, &len);
if (0 >= len || CACHE_VALUE_ITEM_MAX_SIZE < len) {
LOG(WARNING) << "can not load key, because item size:" << len
<< " beyond max item size:" << CACHE_VALUE_ITEM_MAX_SIZE;
return false;
}

Expand Down Expand Up @@ -205,8 +203,6 @@ void *PikaCacheLoadThread::ThreadMain() {
for (auto & load_key : load_keys) {
if (LoadKey(std::get<0>(load_key), std::get<1>(load_key), std::get<2>(load_key))) {
++async_load_keys_num_;
} else {
LOG(WARNING) << "PikaCacheLoadThread::ThreadMain LoadKey: " << std::get<1>(load_key) << " failed !!!";
}

std::unique_lock lm(loadkeys_map_mutex_);
Expand Down

0 comments on commit 3c7b6b3

Please sign in to comment.