Skip to content

Commit cdd8523

Browse files
ryaneorthpintsized
authored andcommitted
Removed o_down check as it can only occur in master nodes
1 parent aff76fc commit cdd8523

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/resty/redis/sentinel.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ function _M.get_slaves(sentinel, master_name)
4141

4242
local master_link_status_ok = host["master-link-status"] == "ok"
4343
local is_down = host["flags"] and (string.find(host["flags"],"s_down")
44-
or string.find(host["flags"],"o_down")
4544
or string.find(host["flags"],"disconnected"))
4645
if master_link_status_ok and not is_down then
4746
host.host = host.ip -- for parity with other functions

0 commit comments

Comments
 (0)