Commit 165669b2 authored by Robert Speicher's avatar Robert Speicher

Wrap load_balancing initializer in `ee` block

parent e1f3b4b6
# We need to run this initializer after migrations are done so it doesn't fail on CI
if ActiveRecord::Base.connected? && ActiveRecord::Base.connection.data_source_exists?('licenses')
Gitlab.ee do
if ActiveRecord::Base.connected? && ActiveRecord::Base.connection.data_source_exists?('licenses')
if Gitlab::Database::LoadBalancing.enable?
Gitlab::Database.disable_prepared_statements
......@@ -17,4 +19,5 @@ if ActiveRecord::Base.connected? && ActiveRecord::Base.connection.data_source_ex
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment