From 87b550ed2fba472d4ef2e1f771bb5f9fd248804f 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 --- 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 f1f4a4b1764f9..7507d289f19ed 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)); } -- 2.39.5