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

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


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

commit e92761ad5c81507d1b971841e07204a2fdbc8350
Author: abmdocrt <[email protected]>
AuthorDate: Mon Jan 13 21:09:45 2025 +0800

    [Fix](recycler) Avoid accessing moved S3Conf object in S3Accessor 
initialization (#46917)
---
 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to