From 79401d5a65f69b5bf1645a1244a4c91f29f3fba6 Mon Sep 17 00:00:00 2001 From: liyankun Date: Thu, 28 Jan 2016 16:17:59 +0800 Subject: [PATCH] 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 --- src/rgw/rgw_rados.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index aa5b3b4914edc..7498b37ecef6b 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 */ -- 2.39.5