★ wanayoo — archive 1999 https://github.com/cpp-redis/cpp_redis/issues/30Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sentinel::slaves not showing slave info? #30

Open
baldmice opened this issue Apr 9, 2019 · 1 comment
Open

sentinel::slaves not showing slave info? #30

baldmice opened this issue Apr 9, 2019 · 1 comment

Comments

@baldmice
Copy link

@baldmice baldmice commented Apr 9, 2019

I setup a master with two slaves and using three sentinels. I can connect using sentinel without any issue. However, when I'm querying slave status as below:
client.get_sentinel().slaves(, [](const reply& reply) { std::cout << reply << std::endl; }).sync_commit(1s);
I always get "connect error: tcp_client is disconnected" exception. Is this known issue or I am doing something wrong?

@baldmice
Copy link
Author

@baldmice baldmice commented Apr 26, 2019

Weird, seems like need to always do an extra client.get_sentinel().connect_sentinel() before the query. Is that intended? The client.connect(master) internally already does that, but then still need to re-connect sentinels?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.