summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2019-04-12 07:55:22 +0000
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-04-15 10:17:56 +0200
commit75ec347d4499b98f27aa1f712258e7fac25fab15 (patch)
tree2d410ee3458497ebe1898615944927190f430b1a /lib
parent0a99e0220d9371423039f05f700af3675b26624f (diff)
downloadgitlab-ce-75ec347d4499b98f27aa1f712258e7fac25fab15.tar.gz
Git FSCK has no timeoutzj-fsck-no-timeout
FSCK is usually called through sidekiq, but a rake task doesn't have a mechanism to default to no timeout for this RPC. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53319
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/gitaly_client/repository_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/gitaly_client/repository_service.rb b/lib/gitlab/gitaly_client/repository_service.rb
index a08bfd0e25b..74aae4a8e97 100644
--- a/lib/gitlab/gitaly_client/repository_service.rb
+++ b/lib/gitlab/gitaly_client/repository_service.rb
@@ -190,7 +190,7 @@ module Gitlab
def fsck
request = Gitaly::FsckRequest.new(repository: @gitaly_repo)
- response = GitalyClient.call(@storage, :repository_service, :fsck, request)
+ response = GitalyClient.call(@storage, :repository_service, :fsck, request, timeout: GitalyClient.no_timeout)
if response.error.empty?
return "", 0