[sheepdog] [PATCH] sheep/request.c: fix bug of parameter passing in listen_handler

Meng Lingkun menglingkun at cmss.chinamobile.com
Mon May 18 08:38:52 CEST 2015


It's confused to pass bool to struct cluster_info. Because it's
not used in create_client, passing NULL is better.

Signed-off-by: Meng Lingkun <menglingkun at cmss.chinamobile.com>
---
 sheep/request.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sheep/request.c b/sheep/request.c
index f12ca6b..cec13a2 100644
--- a/sheep/request.c
+++ b/sheep/request.c
@@ -1070,7 +1070,7 @@ static void listen_handler(int listen_fd, int events, void *data)
 		}
 	}
 
-	ci = create_client(fd, data);
+	ci = create_client(fd, NULL);
 	if (!ci) {
 		close(fd);
 		return;
-- 
1.7.1





More information about the sheepdog mailing list