xinyiZzz commented on code in PR #19622:
URL: https://github.com/apache/doris/pull/19622#discussion_r1195242186


##########
be/src/olap/rowset/segment_v2/inverted_index_cache.cpp:
##########
@@ -179,6 +179,19 @@ Status InvertedIndexSearcherCache::erase(const 
std::string& index_file_path) {
     return Status::OK();
 }
 
+void InvertedIndexSearcherCache::prune() {
+    if (_cache) {
+        _cache->prune();

Review Comment:
   `prune()` will free the entire cache, expecting it to be like `segment 
cache`,
   During minor gc, prune_if evict the cache value with last_visit_time > N min
   During full gc, prune evict entire cache



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to