dataroaring commented on code in PR #57767:
URL: https://github.com/apache/doris/pull/57767#discussion_r2501347149
##########
be/src/runtime/load_channel_mgr.h:
##########
@@ -89,12 +89,21 @@ class LoadChannelMgr {
DEFAULT_LRU_CACHE_ELEMENT_COUNT_CAPACITY,
false) {}
};
+ class LastCancelChannelCache : public LRUCachePolicy {
+ public:
+ LastCancelChannelCache(size_t capacity)
+ :
LRUCachePolicy(CachePolicy::CacheType::LAST_SUCCESS_CHANNEL_CACHE, capacity,
+ LRUCacheType::SIZE, -1,
DEFAULT_LRU_CACHE_NUM_SHARDS,
+ DEFAULT_LRU_CACHE_ELEMENT_COUNT_CAPACITY,
false) {}
+ };
+
Review Comment:
Should rename LastSuccessChannelCache to LoadStateChannelCache instead of
adding LastCancelChannelCache.
--
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]