Skip to content
Snippets Groups Projects
Commit 2a2af833 authored by vito.he's avatar vito.he
Browse files

Fix:bug #42

parent 9f65c6fa
No related branches found
No related tags found
No related merge requests found
......@@ -331,8 +331,8 @@ func (z *zookeeperClient) RegisterTemp(basePath string, node string) (string, er
tmpPath, err = z.conn.Create(zkPath, data, zk.FlagEphemeral, zk.WorldACL(zk.PermAll))
}
z.Unlock()
if err != nil && err != zk.ErrNodeExists {
//if err != nil {
//if err != nil && err != zk.ErrNodeExists {
if err != nil {
log.Warn("conn.Create(\"%s\", zk.FlagEphemeral) = error(%v)\n", zkPath, jerrors.ErrorStack(err))
return "", jerrors.Trace(err)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment