# File lib/active_record/connection_adapters/seamless_database_pool_adapter.rb, line 159 def initialize(connection, logger, master_connection, read_connections, pool_weights, config) @master_connection = master_connection @read_connections = read_connections.dup.freeze super(connection, logger, config) @weighted_read_connections = [] pool_weights.each_pair do |conn, weight| weight.times{@weighted_read_connections << conn} end @available_read_connections = [AvailableConnections.new(@weighted_read_connections)] end