mirror of
https://github.com/predis/predis.git
synced 2026-08-28 19:21:22 +00:00
922e56b480
Iterating over Predis\Connection\Aggregate\RedisCluster returns all the connections currently mapped in the slots map instead of just the ones initialized in the pool. When the slots map is retrieved from Redis (which by default is done automatically) this allows to iterate over all of the current master nodes of the cluster. When the underlying use of "CLUSTER SLOTS" is disabled the iteration returns only connections with a slots range associated in their parameters or initialized by `-MOVED` responses to make the behaviour of the iteration consistent between the two modes of operation.