]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove duplicated code in RGWRados::get_bucket_info() 7413/head
authorliyankun <liyankun@unitedstack.com>
Thu, 28 Jan 2016 08:17:59 +0000 (16:17 +0800)
committerliyankun <liyankun@unitedstack.com>
Sat, 30 Jan 2016 06:14:48 +0000 (14:14 +0800)
The effect of line 7664-7665 is the same as the line 7658-7660

Signed-off-by: liyankun <lioveni99@gmail.com>
src/rgw/rgw_rados.cc

index aa5b3b4914edcea38e3c08ee9f9034a95ae7610f..7498b37ecef6b65dfd6215cdfda7b9666894e60b 100644 (file)
@@ -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 */