Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBastian Blank <waldi@debian.org>2018-02-05 20:36:51 +0300
committerBastian Blank <waldi@debian.org>2018-02-06 19:36:35 +0300
commit285d5d526b1d568580b63488b8832cfc9ef19077 (patch)
tree9587cbbed938bacc92df4272fe3329e703c223a1 /lib
parent1214d8de691494138cbaab10da242c71504158de (diff)
Close low level rugged repository in project cache worker
Signed-off-by: Bastian Blank <waldi@debian.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git/repository.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index ab1362a3bb0..09fb3999d83 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -128,6 +128,10 @@ module Gitlab
raise NoRepository.new('no repository for such path')
end
+ def cleanup
+ @rugged&.close
+ end
+
def circuit_breaker
@circuit_breaker ||= Gitlab::Git::Storage::CircuitBreaker.for_storage(storage)
end