yiguolei commented on code in PR #67670:
URL: https://github.com/apache/doris/pull/67670#discussion_r4120643533
##########
be/src/util/lru_cache.cpp:
##########
@@ -305,21 +312,39 @@ void LRUCache::_lru_append(LRUHandle* list, LRUHandle* e)
{
}
Cache::Handle* LRUCache::lookup(const CacheKey& key, uint32_t hash) {
+ _lookup_count.fetch_add(1, std::memory_order_relaxed);
+ {
+ std::shared_lock l(_mutex);
+ LRUHandle* e = _table.lookup(key, hash);
+ if (e == nullptr) {
+ // LRU-K misses must update the visits list under the exclusive
lock.
+ if (!_is_lru_k) {
+ _miss_count.fetch_add(1, std::memory_order_relaxed);
Review Comment:
这里没有感知lru 吗?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]