Commit 5173bc8a authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Move Gitaly RefExists check to OPT_OUT

Part of the Gitaly migration as tracked in: https://gitlab.com/gitlab-org/gitaly/issues/401

Acceptance testing was done in: https://gitlab.com/gitlab-org/gitaly/issues/1014
parent b9d868e3
---
title: Check if a ref exists is done by Gitaly by default
merge_request:
author:
type: performance
...@@ -297,7 +297,8 @@ module Gitlab ...@@ -297,7 +297,8 @@ module Gitlab
# #
# Ref names must start with `refs/`. # Ref names must start with `refs/`.
def ref_exists?(ref_name) def ref_exists?(ref_name)
gitaly_migrate(:ref_exists) do |is_enabled| gitaly_migrate(:ref_exists,
status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
if is_enabled if is_enabled
gitaly_ref_exists?(ref_name) gitaly_ref_exists?(ref_name)
else 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