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
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-11-15 09:49:10 +0300
committerMichael Kozono <mkozono@gmail.com>2017-12-02 02:26:41 +0300
commitb63e8f4adfda2f907280824e6acf69bbaa56de3a (patch)
tree950180a5678ddafe622d409e054068d73b8363cc
parent0715034805a8f68c66118cf78777bca92ad7cef1 (diff)
Fallback on checksum jobs
Since `calculate_checksum` depends on `Uploader` classes which are not defined in this background migration and may change at any time.
-rw-r--r--lib/gitlab/background_migration/populate_untracked_uploads.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/background_migration/populate_untracked_uploads.rb b/lib/gitlab/background_migration/populate_untracked_uploads.rb
index f2207fa4e72..8529e8d1d0b 100644
--- a/lib/gitlab/background_migration/populate_untracked_uploads.rb
+++ b/lib/gitlab/background_migration/populate_untracked_uploads.rb
@@ -166,6 +166,8 @@ module Gitlab
return unless exist?
self.checksum = Digest::SHA256.file(absolute_path).hexdigest
+ rescue StandardError
+ schedule_checksum
end
def exist?