summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorPavan Sondur <pavan@gluster.com>2010-05-27 04:38:45 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-05-27 08:18:28 -0700
commit49116597598fbb793286e72b52b5c79e4db31943 (patch)
treeaac9af30d6ab1714599defbddcbfe7cd593f8dc4 /xlators/protocol
parent3bd7269c9390db1fa57ac08106d97dc9981e9a85 (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
Diffstat (limited to 'xlators/protocol')
-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 89c6cf0ef..d2e11a095 100644
--- a/xlators/protocol/server/src/server-resolve.c
+++ b/xlators/protocol/server/src/server-resolve.c
@@ -533,7 +533,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);