From 55d332f5eca51ee4820ecd62af1cdb2a24ad100e Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 27 Apr 2010 03:46:39 +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(+) (limited to 'xlators/storage/posix/src/posix.c') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 5ed3e5dc631..c22517f9ecd 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -2074,6 +2074,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