Explorar el Código

Evict connection from slots cache when removed.

Daniele Alessandri hace 9 años
padre
commit
5adafb352c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/Connection/Aggregate/RedisCluster.php

+ 2 - 0
src/Connection/Aggregate/RedisCluster.php

@@ -117,6 +117,8 @@ class RedisCluster implements ClusterInterface, \IteratorAggregate, \Countable
                 $this->slotsMap
             );
 
+            $this->slots = array_diff($this->slots, array($connection));
+
             return true;
         }