From: liyankun Date: Thu, 28 Jan 2016 08:17:59 +0000 (+0800) Subject: rgw: remove duplicated code in RGWRados::get_bucket_info() X-Git-Tag: v10.1.0~411^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=79401d5a65f69b5bf1645a1244a4c91f29f3fba6;p=ceph.git rgw: remove duplicated code in RGWRados::get_bucket_info() The effect of line 7664-7665 is the same as the line 7658-7660 Signed-off-by: liyankun --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index aa5b3b4914ed..7498b37ecef6 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -7661,8 +7661,6 @@ int RGWRados::get_bucket_info(RGWObjectCtx& obj_ctx, ldout(cct, 20) << "rgw_get_bucket_info: bucket instance: " << entry_point.bucket << dendl; - if (pattrs) - pattrs->clear(); /* read bucket instance info */