Commit b3ed751c authored by Nick Thomas's avatar Nick Thomas

Merge branch 'zj-ref-exists-opt-out' into 'master'

Move Gitaly RefExists check to OPT_OUT

Closes gitaly#401

See merge request gitlab-org/gitlab-ce!18333
parents 8feab949 5173bc8a
---
title: Check if a ref exists is done by Gitaly by default
merge_request:
author:
type: performance
...@@ -300,7 +300,8 @@ module Gitlab ...@@ -300,7 +300,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