forked from Cylix/cpp_redis
-
Notifications
You must be signed in to change notification settings - Fork 209
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi I had problems to use de last master version, in HA mode.
Never conneted to sentinels
I have found the problem in sentinels.cpp
Here your code , the command is wrong "get-master-addr-by-m_name" should be
"get-master-addr-by-name"
send({"SENTINEL", "get-master-addr-by-m_name", name}, [&](cpp_redis::reply& reply) {
if (reply.is_array()) {
auto arr = reply.as_array();
host = arr[0].as_string();
port = std::stoi(arr[1].as_string(), nullptr, 10);
}
});
sync_commit();
I hope that this helps you
God job!
Best regards,
Roni
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working