浏览代码

Discard slave even when flag is "o_down".

Daniele Alessandri 8 年之前
父节点
当前提交
9303029c13
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Connection/Aggregate/SentinelReplication.php

+ 1 - 1
src/Connection/Aggregate/SentinelReplication.php

@@ -385,7 +385,7 @@ class SentinelReplication implements ReplicationInterface
         foreach ($payload as $slave) {
             $flags = explode(',', $slave[9]);
 
-            if (array_intersect($flags, array('s_down', 'disconnected'))) {
+            if (array_intersect($flags, array('s_down', 'o_down', 'disconnected'))) {
                 continue;
             }