Skip to content

Commit

Permalink
[common][cache_utils]: fix not empty condition in remove_if_invalidated
Browse files Browse the repository at this point in the history
  • Loading branch information
karasjoh000 authored and vpirogov committed Aug 2, 2023
1 parent fdbff45 commit 0a6202f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/cache_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ struct lru_cache_t final : public cache_t<K, O, C, key_merge> {

const auto &value = it->second.value_;
// If the entry is not invalidated
if (value.get().is_empty()) { return; }
if (!value.get().is_empty()) { return; }

// Remove the invalidated entry
cache_mapper().erase(it);
Expand Down

0 comments on commit 0a6202f

Please # to comment.