Make Gitaly RepositoryExists opt-out

This commit is contained in:
Jacob Vosmaer (GitLab) 2018-01-25 13:59:35 +00:00 committed by Douwe Maan
parent d7d6bad113
commit 9e6ce87727
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
title: Make Gitaly RepositoryExists opt-out
merge_request: 16680
author:
type: other

View File

@ -133,7 +133,7 @@ module Gitlab
end end
def exists? def exists?
Gitlab::GitalyClient.migrate(:repository_exists) do |enabled| Gitlab::GitalyClient.migrate(:repository_exists, status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |enabled|
if enabled if enabled
gitaly_repository_client.exists? gitaly_repository_client.exists?
else else