Skip to content

Remove `Gitlab::Database#create_connection_pool` and provide LB one

What does this MR do?

Based on: !67057 (merged). Will automatically re-target once the !67057 (merged) is merged.

The primary intent is to remove Gitlab::Database#create_connection_pool and rather ensure that a pool is created in LB context from a db_config of a current pool.

This, since the pool is cloned, also creates a HashConfig indicating a connection specification that can be later used for db_roles.

Conformity

Edited by Kamil Trzciński (Back 2025-01-01)

Merge request reports

Loading