storage/posix: Remove a redundant lstat in posix_handle_hard.
Change-Id: I9129b71d5568eff3513c17e3607256783fdc42ec BUG: 903396 Signed-off-by: Mohammed Junaid <junaid@redhat.com> Reviewed-on: http://review.gluster.org/4641 Reviewed-by: Peter Portante <pportant@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
This commit is contained in:
parent
16ce96c299
commit
b7b5c51bbe
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user