Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-03 12:10:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-03 12:10:18 +0300
commite5f183140340a76754af3beabff0fcd74212a102 (patch)
treeda0dcb2b596037e9ddda171d6ec63393462bae0f /app/models/postgresql
parent685084aaf40a35358bd7c5135b08dc7e0d3439a7 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/postgresql')
-rw-r--r--app/models/postgresql/replication_slot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/postgresql/replication_slot.rb b/app/models/postgresql/replication_slot.rb
index c96786423e5..e23a9546cae 100644
--- a/app/models/postgresql/replication_slot.rb
+++ b/app/models/postgresql/replication_slot.rb
@@ -27,7 +27,7 @@ module Postgresql
# We force the use of a transaction here so the query always goes to the
# primary, even when using the EE DB load balancer.
- sizes = transaction { pluck(lag_function) }
+ sizes = transaction { pluck(Arel.sql(lag_function)) }
too_great = sizes.compact.count { |size| size >= max }
# If too many replicas are falling behind too much, the availability of a