Fix comment.

This commit is contained in:
Andreas Brandl 2018-11-23 16:24:18 +01:00
parent df6166f4b1
commit ff35cb45e9
No known key found for this signature in database
GPG Key ID: F25982B13FEE55DA
1 changed files with 1 additions and 1 deletions

View File

@ -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|