Forráskód Böngészése

Discard slave even when flag is "o_down".

Daniele Alessandri 8 éve
szülő
commit
9303029c13
1 módosított fájl, 1 hozzáadás és 1 törlés
  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;
             }