Commit 99b13352 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch '324657-enable-loadbalancer-new-query-by-default' into 'master'

Enable the new database load balancer query ENV flag by default

See merge request gitlab-org/gitlab!63910
parents fc006e6b b44a37ba
......@@ -293,7 +293,7 @@ module Gitlab
# @param [ActiveRecord::Connection] ar_connection
# @return [String]
def self.get_write_location(ar_connection)
use_new_load_balancer_query = Gitlab::Utils.to_boolean(ENV['USE_NEW_LOAD_BALANCER_QUERY'], default: false)
use_new_load_balancer_query = Gitlab::Utils.to_boolean(ENV['USE_NEW_LOAD_BALANCER_QUERY'], default: true)
sql = if use_new_load_balancer_query
<<~NEWSQL
......
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