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


##########
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:
   It is easily to map queue.resize to std::queue.resize.



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