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

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|