From b7b5c51bbeb6401c65cc879f7aacb9c7ca1c85b1 Mon Sep 17 00:00:00 2001 From: Mohammed Junaid Date: Wed, 6 Mar 2013 14:04:51 +0530 Subject: storage/posix: Remove a redundant lstat in posix_handle_hard. Change-Id: I9129b71d5568eff3513c17e3607256783fdc42ec BUG: 903396 Signed-off-by: Mohammed Junaid Reviewed-on: http://review.gluster.org/4641 Reviewed-by: Peter Portante Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY --- xlators/storage/posix/src/posix-handle.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'xlators/storage/posix/src') diff --git a/xlators/storage/posix/src/posix-handle.c b/xlators/storage/posix/src/posix-handle.c index 33bf3db56a5..219a582c9f7 100644 --- a/xlators/storage/posix/src/posix-handle.c +++ b/xlators/storage/posix/src/posix-handle.c @@ -573,13 +573,6 @@ posix_handle_hard (xlator_t *this, const char *oldpath, uuid_t gfid, struct stat } } - ret = lstat (newpath, &newbuf); - if (ret) { - gf_log (this->name, GF_LOG_WARNING, - "lstat on %s failed (%s)", newpath, strerror (errno)); - return -1; - } - if (newbuf.st_ino != oldbuf->st_ino || newbuf.st_dev != oldbuf->st_dev) { gf_log (this->name, GF_LOG_WARNING, -- cgit