From: weiqiaomiao Date: Mon, 11 Jul 2016 11:19:55 +0000 (+0800) Subject: rgw: should assign 'olh_bl" to state.attrset[RGW_ATTR_OLH_ID_TAG] instead of 'bl' X-Git-Tag: v11.1.0~614^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f1f4f272100219d3e0ccdd7f462ad6043a60d08d;p=ceph.git rgw: should assign 'olh_bl" to state.attrset[RGW_ATTR_OLH_ID_TAG] instead of 'bl' Signed-off-by: weiqiaomiao --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 8d3a5078e095..aef8f4819856 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -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;