Commit 27a0aa77 authored by Toon Claes's avatar Toon Claes Committed by Winnie Hellmann

Ignore statistics when performing on Geo secondary

Geo secondary cannot update statistics in the database, so ignore that
parameter.
parent ed41e0a4
......@@ -20,7 +20,7 @@ module EE
# Geo should only update Redis based cache, as data store in the database
# will be updated on primary and replicated to the secondaries.
# rubocop: disable CodeReuse/ActiveRecord
def perform_geo_secondary(project_id, refresh = [])
def perform_geo_secondary(project_id, refresh = [], _statistics = [])
project = ::Project.find_by(id: project_id)
return unless project && project.repository.exists?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment