0AyanamiRei commented on code in PR #57767:
URL: https://github.com/apache/doris/pull/57767#discussion_r2501405547
##########
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:
you mean we need combine the LastSuccess and LastCancel in a class?
--
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]