From f55b20076be16d25f48539c4845bc0d59279cd96 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 27 Apr 2010 03:33:27 +0000 Subject: Set op_ret to -1 when open fails in posix create Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati BUG: 825 (when create() races both return success) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=825 --- xlators/storage/posix/src/posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 1d21a63512d..58939f0002b 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)); -- cgit