Skip to content

READONLY You can't write against a read only slave. #145

@cmanley

Description

@cmanley

When I pass multiple host:ports for the servers option, then I get this error when lock() is called and undef is returned:
[set] READONLY You can't write against a read only slave., at ../../../../Redis/DistLock.pm line 141.

If I only pass the host:port of the current master, then it works.

So that means that Redis::Dislock is not querying and selecting which host is master. Is that something that is possible to do?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions