summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-04-27 03:33:27 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-27 02:38:26 -0700
commitf55b20076be16d25f48539c4845bc0d59279cd96 (patch)
tree5b7a0b832716b9579f0c17f8bd242fabcc64f43e
parent4db632f5f68adc1c7d7b696d24e5b25058dcedc3 (diff)
Set op_ret to -1 when open fails in posix createv3.0.5rc1
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 825 (when create() races both return success) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=825
-rw-r--r--xlators/storage/posix/src/posix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 1d21a63..58939f0 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -2243,6 +2243,7 @@ posix_create (call_frame_t *frame, xlator_t *this,
if (_fd == -1) {
op_errno = errno;
+ op_ret = -1;
gf_log (this->name, GF_LOG_ERROR,
"open on %s failed: %s", loc->path,
strerror (op_errno));