Browse Source

Discard slave even when flag is "o_down".

Daniele Alessandri 8 năm trước cách đây
mục cha
commit
9303029c13
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
             }