[sheepdog] [PATCH] zookeeper: use sd_dprintf for ZNONODE and ZNODEEXISTS

Liu Yuan namei.unix at gmail.com
Thu Jul 4 10:15:34 CEST 2013


These information aren't useful for users.

Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 sheep/cluster/zookeeper.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/sheep/cluster/zookeeper.c b/sheep/cluster/zookeeper.c
index 5ed16cf..eadce0e 100644
--- a/sheep/cluster/zookeeper.c
+++ b/sheep/cluster/zookeeper.c
@@ -146,6 +146,8 @@ static struct zk_node this_node;
 	switch (rc) {							\
 	case ZNONODE:							\
 	case ZNODEEXISTS:						\
+		sd_dprintf("failed, path:%s, %s", path, zerror(rc));	\
+		break;							\
 	case ZINVALIDSTATE:						\
 	case ZSESSIONEXPIRED:						\
 	case ZOPERATIONTIMEOUT:						\
-- 
1.7.9.5




More information about the sheepdog mailing list