[sheepdog] [PATCH] zk: remove annoying debug information

Liu Yuan namei.unix at gmail.com
Mon Jul 22 09:10:56 CEST 2013


ZNONODE and ZNODEEXISTS are very high volume operation error code. And not
useful even for debug. So just git rid of them.

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

diff --git a/sheep/cluster/zookeeper.c b/sheep/cluster/zookeeper.c
index 99cb261..6ad694b 100644
--- a/sheep/cluster/zookeeper.c
+++ b/sheep/cluster/zookeeper.c
@@ -146,7 +146,6 @@ 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:						\
-- 
1.7.9.5




More information about the sheepdog mailing list