Set op_ret to -1 when open fails in posix_create
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
This commit is contained in:
parent
81d53a0f5d
commit
55d332f5ec
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user