app/models/switchman/shard.rb
# ten trillion possible ids per shard. yup.
ten trillion possible ids per shard. yup.
ten trillion possible ids per shard . yup .
def on_rollback
      ::ActiveRecord::Base.connection_handler.connection_pools.each do |pool|
        next unless pool.is_a?(ConnectionPoolProxy)
        pool.remove_shard!(self)
      end
    end
def on_rollback :: ActiveRecord :: Base . connection_handler . connection_pools . each do | pool | next unless pool . is_a? ( ConnectionPoolProxy ) pool . remove_shard! ( self ) end end
ten trillion possible ids per shard.
ten trillion possible ids per shard .
# make sure all connection pool proxies are referencing valid pools