Commit 75ec347d authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Git FSCK has 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
parent 0a99e022
---
title: Remove deadline for Git fsck
merge_request: 27299
author:
type: fixed
......@@ -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
......
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