Skip to content

Issue detected using sentinel  #17

@ron-gonzalez

Description

@ron-gonzalez

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions