From: fang.yuxiang Date: Thu, 22 Jun 2017 08:15:48 +0000 (+0800) Subject: rgw: fix err when copy object in bucket with specified placement rule X-Git-Tag: ses5-milestone9~1^2~8^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37369944f1582bef4e97770efeba48535ef8ee8c;p=ceph.git rgw: fix err when copy object in bucket with specified placement rule Fixes: http://tracker.ceph.com/issues/20378 Signed-off-by: fang yuxiang --- diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index cafdd48a563f..a81cd6ea5c5f 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -134,6 +134,7 @@ public: rgw_obj_select(const rgw_obj& _obj) : obj(_obj), is_raw(false) {} rgw_obj_select(const rgw_raw_obj& _raw_obj) : raw_obj(_raw_obj), is_raw(true) {} rgw_obj_select(const rgw_obj_select& rhs) { + placement_rule = rhs.placement_rule; is_raw = rhs.is_raw; if (is_raw) { raw_obj = rhs.raw_obj;