Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
sentinel::slaves not showing slave info? #30
Comments
|
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? |
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?