Compute repository checksum by default

Acceptance testing was done in:
https://gitlab.com/gitlab-org/gitaly/issues/1146. Errors were limited to
NotFound errors, as the repository really doesn't exists.

Closes https://gitlab.com/gitlab-org/gitaly/issues/1146

Optimistically moved https://gitlab.com/gitlab-org/gitaly/issues/1105 to
opt out on the Gitaly migration board.
This commit is contained in:
Zeger-Jan van de Weg 2018-04-30 09:16:00 +02:00
parent 87f1736a73
commit 27d2f407fb
No known key found for this signature in database
GPG key ID: 65F6A8D64A88ABAC
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: Compute Gitlab::Git::Repository#checksum on Gitaly by default
merge_request:
author:
type: performance

View file

@ -1546,7 +1546,8 @@ module Gitlab
end
def checksum
gitaly_migrate(:calculate_checksum) do |is_enabled|
gitaly_migrate(:calculate_checksum,
status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
if is_enabled
gitaly_repository_client.calculate_checksum
else