diff options
Diffstat (limited to 'lib/gitlab/database/load_balancing/configuration.rb')
-rw-r--r-- | lib/gitlab/database/load_balancing/configuration.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/database/load_balancing/configuration.rb b/lib/gitlab/database/load_balancing/configuration.rb index 7814083a527..da313361073 100644 --- a/lib/gitlab/database/load_balancing/configuration.rb +++ b/lib/gitlab/database/load_balancing/configuration.rb @@ -77,6 +77,10 @@ module Gitlab (@primary_model || @model).connection_specification_name end + def primary_db_config + (@primary_model || @model).connection_db_config + end + def replica_db_config @model.connection_db_config end |