Skip to content

Geo - Use Gitlab::Database::BatchCount.batch_count directly in Gitlab::Geo::Replicator#primary_total_count

What does this MR do and why?

Use GitLab::Database::BatchCount.batch_count directly in the Gitlab::Geo::Replicator#primary_total_count method to avoid relying on the default behavior (batch: true) of GitLab::UsageData.count to get a batch count, as well as the current no-op with_duration method. So if that default is changed, we might not catch this use.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related issues

Edited by Michael Kozono

Merge request reports