Skip to content

Commit

Permalink
[Fix](recycler) Avoid accessing moved S3Conf object in S3Accessor ini…
Browse files Browse the repository at this point in the history
…tialization (#46917)
  • Loading branch information
Yukang-Lian authored and Your Name committed Jan 13, 2025
1 parent 5922255 commit 425230e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/src/recycler/recycler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 425230e

Please sign in to comment.