From b63e8f4adfda2f907280824e6acf69bbaa56de3a Mon Sep 17 00:00:00 2001 From: Michael Kozono Date: Tue, 14 Nov 2017 22:49:10 -0800 Subject: 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. --- lib/gitlab/background_migration/populate_untracked_uploads.rb | 2 ++ 1 file changed, 2 insertions(+) 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? -- cgit v1.2.1