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

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


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 8a6ade16b6d branch-3.0: [Fix](recycler) Avoid accessing moved S3Conf 
object in S3Accessor initialization #46917 (#46922)
8a6ade16b6d is described below

commit 8a6ade16b6db734b430bd02e29e5f3720ccc3209
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Jan 14 16:57:52 2025 +0800

    branch-3.0: [Fix](recycler) Avoid accessing moved S3Conf object in 
S3Accessor initialization #46917 (#46922)
    
    Cherry-picked from #46917
    
    Co-authored-by: abmdocrt <lianyuk...@selectdb.com>
---
 cloud/src/recycler/recycler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cloud/src/recycler/recycler.cpp b/cloud/src/recycler/recycler.cpp
index ba67711866b..307528011ea 100644
--- a/cloud/src/recycler/recycler.cpp
+++ b/cloud/src/recycler/recycler.cpp
@@ -2917,7 +2917,7 @@ int InstanceRecycler::recycle_expired_stage_objects() {
 
         s3_conf->prefix = stage.obj_info().prefix();
         std::shared_ptr<S3Accessor> accessor;
-        int ret1 = S3Accessor::create(std::move(*s3_conf), &accessor);
+        int ret1 = S3Accessor::create(*s3_conf, &accessor);
         if (ret1 != 0) {
             LOG(WARNING) << "failed to init s3 accessor ret=" << ret1 << " " 
<< ss.str();
             ret = -1;


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

Reply via email to