Set default timeout for deleting many refs

Prior to this change, this RPC had a fast_timeout. This timeout doesn't
set no timeout on Sidekiq. Deleting many refs can take over a couple of
seconds, so a default timeout would be neccesairy.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/49862
This commit is contained in:
Zeger-Jan van de Weg 2018-08-02 08:23:39 +02:00
parent 9812e5dd7c
commit c7bf366063
No known key found for this signature in database
GPG key ID: 65F6A8D64A88ABAC

View file

@ -166,7 +166,7 @@ module Gitlab
except_with_prefix: except_with_prefixes.map { |r| encode_binary(r) }
)
response = GitalyClient.call(@repository.storage, :ref_service, :delete_refs, request, timeout: GitalyClient.fast_timeout)
response = GitalyClient.call(@repository.storage, :ref_service, :delete_refs, request, timeout: GitalyClient.default_timeout)
raise Gitlab::Git::Repository::GitError, response.git_error if response.git_error.present?
end