This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 73389f797e4 branch-3.1: [Fix](warmup) Fix coredump in 
`CloudTablet::complete_rowset_segment_warmup` due to capture by reference 
#56395 (#56627)
73389f797e4 is described below

commit 73389f797e4099fffe75f44035478f974b53f57f
Author: bobhan1 <[email protected]>
AuthorDate: Fri Oct 10 17:29:55 2025 +0800

    branch-3.1: [Fix](warmup) Fix coredump in 
`CloudTablet::complete_rowset_segment_warmup` due to capture by reference 
#56395 (#56627)
    
    pick #56395
---
 be/src/cloud/cloud_warm_up_manager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/cloud/cloud_warm_up_manager.cpp 
b/be/src/cloud/cloud_warm_up_manager.cpp
index 3a1a0574986..4f086b67032 100644
--- a/be/src/cloud/cloud_warm_up_manager.cpp
+++ b/be/src/cloud/cloud_warm_up_manager.cpp
@@ -145,7 +145,7 @@ void CloudWarmUpManager::submit_download_tasks(io::Path 
path, int64_t file_size,
                         .is_dryrun = 
config::enable_reader_dryrun_when_download_file_cache,
                         .is_warmup = true},
                 .download_done =
-                        [&](Status st) {
+                        [&, done_cb = std::move(done_cb)](Status st) {
                             if (done_cb) done_cb(st);
                             if (!st) {
                                 LOG_WARNING("Warm up error ").error(st);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to