This commit is contained in:
Denis Zheleztsov 2017-02-25 16:00:43 +03:00
parent c0a473682e
commit 1a8ead7f68

View File

@ -57,7 +57,7 @@ func (z ZooNode) GetChildrens(path string) Ls {
l.Error = "" l.Error = ""
l.Childrens = childrens l.Childrens = childrens
l.Path = lsPath l.Path = path
l.ZkStat = zkStat l.ZkStat = zkStat
return l return l
@ -89,7 +89,7 @@ func (z ZooNode) GetNode(path string) Get {
g.Error = "" g.Error = ""
g.Data = data g.Data = data
g.Path = getPath g.Path = path
g.ZkStat = zkStat g.ZkStat = zkStat
return g return g
@ -149,7 +149,7 @@ func (z ZooNode) UpdateNode(path string, content []byte) string {
return err.Error() return err.Error()
} }
return upPath return path
} }
//EnsureZooPath create zookeeper path //EnsureZooPath create zookeeper path
@ -173,5 +173,5 @@ func (z ZooNode) EnsureZooPath(path string) (string, error) {
} }
} }
return fullnodepath, nil return path, nil
} }