From f1f4f272100219d3e0ccdd7f462ad6043a60d08d Mon Sep 17 00:00:00 2001 From: weiqiaomiao Date: Mon, 11 Jul 2016 19:19:55 +0800 Subject: [PATCH] rgw: should assign 'olh_bl" to state.attrset[RGW_ATTR_OLH_ID_TAG] instead of 'bl' Signed-off-by: weiqiaomiao --- src/rgw/rgw_rados.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 8d3a5078e09..aef8f481985 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; -- 2.47.3