]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set placement rule properly 15221/head
authorfang.yuxiang <fang.yuxiang@eisoo.com>
Tue, 23 May 2017 04:19:13 +0000 (12:19 +0800)
committerfang.yuxiang <fang.yuxiang@eisoo.com>
Tue, 23 May 2017 04:19:13 +0000 (12:19 +0800)
we should set placement rule in RGWObjManifest::obj_iterator::update_location()
when ofs < manifest->get_head_size().

Signed-off-by: fang yuxiang fang.yuxiang@eisoo.com
src/rgw/rgw_dencoder.cc

index 6ee42bfe163fe553aa2b6bac94e3eda33f3af9d3..415eadb3c08b6b25a3017553d64a26a74376aa38 100644 (file)
@@ -118,6 +118,7 @@ void RGWObjManifest::obj_iterator::update_location()
 
   if (ofs < manifest->get_head_size()) {
     location = manifest->get_obj();
+    location.set_placement_rule(manifest->get_head_placement_rule());
     return;
   }