diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-11-15 09:49:10 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-12-02 02:26:41 +0300 |
commit | b63e8f4adfda2f907280824e6acf69bbaa56de3a (patch) | |
tree | 950180a5678ddafe622d409e054068d73b8363cc | |
parent | 0715034805a8f68c66118cf78777bca92ad7cef1 (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.rb | 2 |
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? |