On Wed, Feb 19, 2014 at 09:51:22AM +0800, Robin Dong wrote: > From: Robin Dong <sanbai at taobao.com> > > Set sheep node information in zookeeper files so we can debug it easier when > there are same problmes happens in cluster. > > And, add come sd_debug() in zookeeper.c > > Signed-off-by: Robin Dong <sanbai at taobao.com> > --- > sheep/cluster/zookeeper.c | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/sheep/cluster/zookeeper.c b/sheep/cluster/zookeeper.c > index d5cb4ce..68d592d 100644 > --- a/sheep/cluster/zookeeper.c > +++ b/sheep/cluster/zookeeper.c > @@ -383,8 +383,10 @@ static void lock_table_lookup_release(uint64_t lock_id) > continue; > while (true) { > rc = zk_delete_node(lock->lock_path, -1); > - if (rc == ZOK || rc == ZNONODE) > + if (rc == ZOK || rc == ZNONODE) { > + sd_info("delete path: %s ok", lock->lock_path); any reason to use sd_info instead of sd_debug? Thanks Yuan |