Эх сурвалжийг харах

Discard slave even when flag is "o_down".

Daniele Alessandri 8 жил өмнө
parent
commit
9303029c13

+ 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;
             }