Commit d5d7bcf8 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch 'zj-opt-out-delete-refs' into 'master'

Bulk deleting refs is handled by Gitaly by default

See merge request gitlab-org/gitlab-ce!18180
parents 1be9f587 39cc4a92
---
title: Bulk deleting refs is handled by Gitaly by default
merge_request:
author:
type: performance
......@@ -885,7 +885,8 @@ def delete_branch(branch_name)
end
def delete_refs(*ref_names)
gitaly_migrate(:delete_refs) do |is_enabled|
gitaly_migrate(:delete_refs,
status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
if is_enabled
gitaly_delete_refs(*ref_names)
else
......
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