Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Sep 9, 2024
1 parent 6e3e855 commit 0e426c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions be/src/service/point_query_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ void RowCache::erase(const RowCacheKey& key) {
LRUCachePolicy::erase(encoded_key);
}

LookupConnectionCache::CacheValue::~CacheValue() {
SCOPED_ATTACH_TASK(ExecEnv::GetInstance()->point_query_executor_mem_tracker());
item.reset();
}

PointQueryExecutor::~PointQueryExecutor() {
SCOPED_SWITCH_THREAD_MEM_TRACKER_LIMITER(
ExecEnv::GetInstance()->point_query_executor_mem_tracker());
Expand Down
1 change: 1 addition & 0 deletions be/src/service/point_query_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ class LookupConnectionCache : public LRUCachePolicyTrackingManual {

class CacheValue : public LRUCacheValueBase {
public:
~CacheValue() override;
std::shared_ptr<Reusable> item;
};
};
Expand Down

0 comments on commit 0e426c4

Please sign in to comment.