Parcourir la source

Evict connection from slots cache when removed.

Daniele Alessandri il y a 9 ans
Parent
commit
5adafb352c
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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;
         }