method

create_owner_to_pool

rails latest stable - Class: ActiveRecord::ConnectionAdapters::ConnectionHandler

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

create_owner_to_pool()
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 986
      def self.create_owner_to_pool # :nodoc:
        Concurrent::Map.new(initial_capacity: 2) do |h, k|
          # Discard the parent's connection pools immediately; we have no need
          # of them
          discard_unowned_pools(h)

          h[k] = Concurrent::Map.new(initial_capacity: 2)
        end
      end