From: zhangweibing Date: Fri, 26 Aug 2016 02:49:48 +0000 (+0800) Subject: rgw: remove duplicated calls to getattr X-Git-Tag: v10.2.4~98^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=00f3fbe7dc940d8c9176a8da35fccd42e6ddc10f;p=ceph.git rgw: remove duplicated calls to getattr Signed-off-by: Weibing Zhang (cherry picked from commit 87b550ed2fba472d4ef2e1f771bb5f9fd248804f) Fixes: http://tracker.ceph.com/issues/17327 --- diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 918b94255240..b24060b39c84 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -1329,12 +1329,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)); }