Skip to content

Commit a9a2e11

Browse files
author
Bulat Shakirzyanov
committed
change variable name
1 parent e9c00e5 commit a9a2e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cassandra/cluster/schema/replication_strategies/network_topology.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def replication_map(token_hosts, token_ring, replication_options)
3838
replicas = ::Set.new
3939

4040
size.times do |j|
41-
break if all_replicas.size == racks.size && !all_replicas.any? {|(datacenter, replicas)| replicas.size < replication_options[datacenter]}
41+
break if all_replicas.size == racks.size && !all_replicas.any? {|(datacenter, r)| r.size < replication_options[datacenter]}
4242

4343
host = token_hosts[token_ring[(i + j) % size]]
4444
datacenter = host.datacenter

0 commit comments

Comments
 (0)