]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove duplicated calls to getattr 10858/head
authorzhangweibing <zhangweibing@unitedstack.com>
Fri, 26 Aug 2016 02:49:48 +0000 (10:49 +0800)
committerzhangweibing <zhangweibing@unitedstack.com>
Fri, 26 Aug 2016 02:49:48 +0000 (10:49 +0800)
Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
src/rgw/rgw_file.cc

index f1f4a4b1764f94a3758b049d643cd998b63f9f3b..7507d289f19edbded0dec2341bd09b6f78a6c342 100644 (file)
@@ -1284,12 +1284,6 @@ int rgw_getattr(struct rgw_fs *rgw_fs,
   RGWLibFS *fs = static_cast<RGWLibFS*>(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));
 }