From ff35cb45e986b0d155c3954a608c5f94c28f0e64 Mon Sep 17 00:00:00 2001 From: Andreas Brandl Date: Fri, 23 Nov 2018 16:24:18 +0100 Subject: [PATCH] Fix comment. --- lib/gitlab/database/count.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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|