Commit 0756e002 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'tc-fix-geo-project-cache' into 'master'

Ignore statistics when updating project cache on Geo secondary

Closes #10636

See merge request gitlab-org/gitlab-ee!10399
parents eaba1acc 27a0aa77
...@@ -20,7 +20,7 @@ module EE ...@@ -20,7 +20,7 @@ module EE
# Geo should only update Redis based cache, as data store in the database # Geo should only update Redis based cache, as data store in the database
# will be updated on primary and replicated to the secondaries. # will be updated on primary and replicated to the secondaries.
# rubocop: disable CodeReuse/ActiveRecord # 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) project = ::Project.find_by(id: project_id)
return unless project && project.repository.exists? 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