From a63881eaf7688ce0e5318de5d9847ec01a19f6d7 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Fri, 19 Jul 2019 16:10:30 -0400 Subject: [PATCH] rgw: Move upload_info declaration out of conditional That way we don't deconstruct it right after assigning a reference to part of it. Fixes: https://tracker.ceph.com/issues/41172 Signed-off-by: Adam C. Emerson --- src/rgw/rgw_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index b5d909d74d0a..38861e68893b 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -3788,10 +3788,10 @@ void RGWPutObj::execute() rgw_placement_rule *pdest_placement; + multipart_upload_info upload_info; if (multipart) { RGWMPObj mp(s->object.name, multipart_upload_id); - multipart_upload_info upload_info; op_ret = get_multipart_info(store, s, mp.get_meta(), nullptr, nullptr, &upload_info); if (op_ret < 0) { if (op_ret != -ENOENT) { -- 2.47.3