From 703d0eb9bffdf6c553b659728a3a07f068fb15ee 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 --- 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 27c7a72600a..9e575d07b56 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2746,6 +2746,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) { @@ -2842,7 +2843,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