AshinGau commented on code in PR #16485:
URL: https://github.com/apache/doris/pull/16485#discussion_r1099861957


##########
be/src/io/cache/block/cached_remote_file_reader.cpp:
##########
@@ -44,12 +44,13 @@ Status CachedRemoteFileReader::close() {
 
 std::pair<size_t, size_t> CachedRemoteFileReader::_align_size(size_t offset,
                                                               size_t 
read_size) const {
+    size_t segment_size = std::min(std::max(read_size, (size_t)4096), // 4k
+                                   
(size_t)config::file_cache_max_file_segment_size);

Review Comment:
   thanks, done.



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