From d66758b4930224ba8d050f728b701b3259bf9cc7 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Mon, 14 Mar 2011 10:13:08 -0700 Subject: Revert "Make sure we are looking at the right errno in the fix for bug 2452." This reverts commit dae57d72a58ff61fe6eda800d386bf83574ef5c2. --- xlators/nfs/lib/src/rpcsvc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'xlators/nfs/lib') diff --git a/xlators/nfs/lib/src/rpcsvc.c b/xlators/nfs/lib/src/rpcsvc.c index ea75332008e..3af2d16a053 100644 --- a/xlators/nfs/lib/src/rpcsvc.c +++ b/xlators/nfs/lib/src/rpcsvc.c @@ -2555,7 +2555,6 @@ __nfs_rpcsvc_conn_data_poll_out (rpcsvc_conn_t *conn) ssize_t written = -1; char *writeaddr = NULL; size_t writesize = -1; - int local_errno = 0; if (!conn) return -1; @@ -2574,8 +2573,6 @@ tx_remaining: errno = 0; written = nfs_rpcsvc_socket_write (conn->sockfd, writeaddr, writesize); - local_errno = errno; - if (txbuf->txbehave & RPCSVC_TXB_LAST) { gf_log (GF_RPCSVC, GF_LOG_TRACE, "Last Tx Buf"); nfs_rpcsvc_socket_unblock_tx (conn->sockfd); @@ -2594,7 +2591,7 @@ tx_remaining: if (written >= 0) txbuf->offset += written; - if (local_errno == EAGAIN) { + if (errno == EAGAIN) { /* * Socket layer is indicating flow-control. We * break-out now and wait for the next event indicating -- cgit