From 00f3fbe7dc940d8c9176a8da35fccd42e6ddc10f Mon Sep 17 00:00:00 2001 From: zhangweibing Date: Fri, 26 Aug 2016 10:49:48 +0800 Subject: [PATCH] rgw: remove duplicated calls to getattr Signed-off-by: Weibing Zhang (cherry picked from commit 87b550ed2fba472d4ef2e1f771bb5f9fd248804f) Fixes: http://tracker.ceph.com/issues/17327 --- src/rgw/rgw_file.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 918b942552401..b24060b39c844 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)); } -- 2.39.5