From 053c261e5bfcb4d39770048775515eb6a667f987 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 4 Jun 2014 09:24:33 -0700 Subject: [PATCH] rgw: set meta object in extra flag when initializing it As part of the fix for 8452 we moved the meta object initialization. Missed moving the extra flag initialization that is needed. This breaks setups where there's a separate extra pool (needed in ec backends). Reported-by: Sylvain Munaut Signed-off-by: Yehuda Sadeh (cherry picked from commit 703d0eb9bffdf6c553b659728a3a07f068fb15ee) --- 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 a781e9fab3dd..464208c97c5b 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2694,6 +2694,7 @@ void RGWCompleteMultipart::execute() iter = parts->parts.begin(); meta_obj.init_ns(s->bucket, meta_oid, mp_ns); + meta_obj.set_in_extra_data(true); ret = get_obj_attrs(store, s, meta_obj, attrs, NULL, NULL); if (ret < 0) { @@ -2790,7 +2791,6 @@ void RGWCompleteMultipart::execute() return; // remove the upload obj - meta_obj.set_in_extra_data(true); store->delete_obj(s->obj_ctx, s->bucket_owner.get_id(), meta_obj); } -- 2.47.3