From: zhangweibing Date: Fri, 26 Aug 2016 02:49:48 +0000 (+0800) Subject: rgw: remove duplicated calls to getattr X-Git-Tag: v11.0.1~352^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10858%2Fhead;p=ceph.git rgw: remove duplicated calls to getattr Signed-off-by: Weibing Zhang --- diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index f1f4a4b1764f..7507d289f19e 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -1284,12 +1284,6 @@ int rgw_getattr(struct rgw_fs *rgw_fs, RGWLibFS *fs = static_cast(rgw_fs->fs_private); RGWFileHandle* rgw_fh = get_rgwfh(fh); - int rc = -(fs->getattr(rgw_fh, st)); - if (rc != 0) { - // do it again - rc = -(fs->getattr(rgw_fh, st)); - } - return -(fs->getattr(rgw_fh, st)); }