Unverified Commit 39cc4a92 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Bulk deleting refs is handled by Gitaly by default

Has been stable for a while in production, so this endpoint grew out if
OPT_IN, the default state.

Part of https://gitlab.com/gitlab-org/gitaly/issues/526
parent eaed588b
---
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
......
Supports Markdown
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