freemandealer commented on code in PR #59314:
URL: https://github.com/apache/doris/pull/59314#discussion_r2654632667


##########
be/src/io/cache/block_file_cache.cpp:
##########
@@ -1211,10 +1222,10 @@ void BlockFileCache::reset_range(const UInt128Wrapper& 
hash, size_t offset, size
     if (cell->queue_iterator) {
         auto& queue = get_queue(cell->file_block->cache_type());
         DCHECK(queue.contains(hash, offset, cache_lock));
-        auto iter = queue.get(hash, offset, cache_lock);
-        iter->size = new_size;
-        queue.cache_size -= old_size;
-        queue.cache_size += new_size;
+        queue.resize(*cell->queue_iterator, new_size, cache_lock);

Review Comment:
   what does that mean? need to change to another name?



-- 
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]

Reply via email to