Remove tracking entries when a primary notify that a project was deleted

parent 8fc0d4ef
......@@ -52,7 +52,7 @@ module Projects
flush_caches(project, wiki_path)
trash_repositories!
remove_tracking_registry!
remove_tracking_entries!
log_info("Project \"#{project.name}\" was removed")
end
......@@ -99,7 +99,7 @@ module Projects
project.container_registry_repository.delete_tags
end
def remove_tracking_registry!
def remove_tracking_entries!
return unless Gitlab::Geo.secondary?
Geo::ProjectRegistry.where(project_id: project.id).delete_all
......
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