summaryrefslogtreecommitdiff
path: root/lib/gitlab/database
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-11-23 16:24:18 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-12-03 21:26:53 +0100
commitff35cb45e986b0d155c3954a608c5f94c28f0e64 (patch)
tree16935085f305409b45dba09490dcd0f83e5c0221 /lib/gitlab/database
parentdf6166f4b112633c46d4b5c04aa9cfdb16aef88b (diff)
downloadgitlab-ce-ff35cb45e986b0d155c3954a608c5f94c28f0e64.tar.gz
Fix comment.
Diffstat (limited to 'lib/gitlab/database')
-rw-r--r--lib/gitlab/database/count.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/database/count.rb b/lib/gitlab/database/count.rb
index 2ed6728a6e3..df08e6916dd 100644
--- a/lib/gitlab/database/count.rb
+++ b/lib/gitlab/database/count.rb
@@ -116,7 +116,7 @@ module Gitlab
def size_estimates(check_statistics: true)
table_to_model = models.each_with_object({}) { |model, h| h[model.table_name] = model }
- # Querying tuple stats only works on the primary. Due to load
+ # Querying tuple stats only works on the primary. Due to load balancing, the
# easiest way to do this is to start a transaction.
ActiveRecord::Base.transaction do
get_statistics(table_names, check_statistics: check_statistics).each_with_object({}) do |row, data|