return chrooted path in RMR instead of full node path
This commit is contained in:
parent
0f285105f2
commit
8a575eac18
@ -131,7 +131,7 @@ func (zk ZooNode) RM(w http.ResponseWriter, r *http.Request) {
|
|||||||
go func() { zk.RMR(rmPath) }()
|
go func() { zk.RMR(rmPath) }()
|
||||||
|
|
||||||
w.WriteHeader(200)
|
w.WriteHeader(200)
|
||||||
w.Write([]byte(rmPath))
|
w.Write([]byte(path))
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET ...
|
// GET ...
|
||||||
|
@ -31,7 +31,7 @@ func (conf Zk) InitConnection() (*zk.Conn, error) {
|
|||||||
return conn, err
|
return conn, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetChildrens ...
|
// GetChildrens get Zookeeper node childrens
|
||||||
func (z ZooNode) GetChildrens(path string) Ls {
|
func (z ZooNode) GetChildrens(path string) Ls {
|
||||||
var lsPath string
|
var lsPath string
|
||||||
lsPath = strings.Join([]string{z.Path, path}, "")
|
lsPath = strings.Join([]string{z.Path, path}, "")
|
||||||
|
Loading…
Reference in New Issue
Block a user