]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: should assign 'olh_bl" to state.attrset[RGW_ATTR_OLH_ID_TAG] instead of 'bl' 10239/head
authorweiqiaomiao <wei.qiaomiao@zte.com.cn>
Mon, 11 Jul 2016 11:19:55 +0000 (19:19 +0800)
committerweiqiaomiao <wei.qiaomiao@zte.com.cn>
Tue, 9 Aug 2016 00:53:23 +0000 (08:53 +0800)
Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
src/rgw/rgw_rados.cc

index 8d3a5078e095828df5d247783532fe7e1cab8f49..aef8f4819856da63b34de98edf575933dbd16460 100644 (file)
@@ -9668,7 +9668,7 @@ int RGWRados::olh_init_modification_impl(RGWObjState& state, rgw_obj& olh_obj, s
     olh_bl.append(olh_tag.c_str(), olh_tag.size());
     op.setxattr(RGW_ATTR_OLH_ID_TAG, olh_bl);
 
-    state.attrset[RGW_ATTR_OLH_ID_TAG] = bl;
+    state.attrset[RGW_ATTR_OLH_ID_TAG] = olh_bl;
     state.olh_tag = olh_bl;
     state.is_olh = true;