summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavan Sondur <pavan@gluster.com>2010-05-27 04:39:42 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-05-27 08:18:35 -0700
commit24dd6ac9da2c22f95d00c82a52d19d475eab1a79 (patch)
tree7e1a1938514765d4ed4eae9b0491dbae1377987d
parent6634dd201702f6b59302ed9f17eca427e3bbc21b (diff)
protocol/server: Use EBADFD instead of EBADF in the case of a failed fd resolution.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 952 (EBADF returned by server-protocol confuses AFR) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=952
-rw-r--r--xlators/protocol/server/src/server-resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c
index fc022be..255223b 100644
--- a/xlators/protocol/server/src/server-resolve.c
+++ b/xlators/protocol/server/src/server-resolve.c
@@ -532,7 +532,7 @@ server_resolve_fd (call_frame_t *frame)
if (!state->fd) {
resolve->op_ret = -1;
- resolve->op_errno = EBADF;
+ resolve->op_errno = EBADFD;
}
server_resolve_all (frame);