diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-03 12:10:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-03 12:10:18 +0300 |
commit | e5f183140340a76754af3beabff0fcd74212a102 (patch) | |
tree | da0dcb2b596037e9ddda171d6ec63393462bae0f /app/models/postgresql | |
parent | 685084aaf40a35358bd7c5135b08dc7e0d3439a7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/postgresql')
-rw-r--r-- | app/models/postgresql/replication_slot.rb | 2 |
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 |