Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

mousio.etcd4j.EtcdClient.getDir(String) has no effect #180

Open
bestcode opened this issue Sep 19, 2018 · 3 comments
Open

mousio.etcd4j.EtcdClient.getDir(String) has no effect #180

bestcode opened this issue Sep 19, 2018 · 3 comments

Comments

@bestcode
Copy link

It seems that the function getDir(String) returns the same result as get(String). There's no difference between them. It sounds like the getDir should return "dir" nodes only, but in fact it returns all kinds of nodes. What's the purpose that the getDir() born for ?

@lburgazzoli
Copy link
Collaborator

lburgazzoli commented Sep 19, 2018

@bestcode
Copy link
Author

thanks for your quick response @lburgazzoli . but I found this attribute has no effect when adding to a GET request, as I tested against my etcd deployment.
I mean these two requests have the same result:
curl 'http://ip:port/v2/keys/somedir'
curl 'http://ip:port/v2/keys/somedir?dir=true'

so what's the meaning to add this attribute to a GET request? I'm a new hand to etcd, so if my question is not proper, forgive me.

@lburgazzoli
Copy link
Collaborator

lburgazzoli commented Sep 19, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants