Explorar o código

Evict connection from slots cache when removed.

Daniele Alessandri %!s(int64=9) %!d(string=hai) anos
pai
achega
5adafb352c
Modificáronse 1 ficheiros con 2 adicións e 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;
         }