[sheepdog] [PATCH] zookepeer: fix fix is_blocking_event

Christoph Hellwig hch at infradead.org
Fri Jun 1 08:35:54 CEST 2012


The join request is the blocking event, not the join response.

Signed-off-by: Christoph Hellwig <hch at lst.de>

diff --git a/sheep/cluster/zookeeper.c b/sheep/cluster/zookeeper.c
index e8b40c1..3dde1e4 100644
--- a/sheep/cluster/zookeeper.c
+++ b/sheep/cluster/zookeeper.c
@@ -83,7 +83,7 @@ static size_t nr_zk_nodes;
 
 static inline int is_blocking_event(struct zk_event *ev)
 {
-	return ev->type == EVENT_BLOCK || ev->type == EVENT_JOIN_RESPONSE;
+	return ev->type == EVENT_BLOCK || ev->type == EVENT_JOIN_REQUEST;
 }
 
 /* zookeeper API wrapper */



More information about the sheepdog mailing list