Browse Source

Evict connection from slots cache when removed.

Daniele Alessandri 9 năm trước cách đây
mục cha
commit
ac165194f5
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/Connection/Aggregate/RedisCluster.php

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

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