diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2019-02-27 06:08:34 +0100 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2019-03-01 15:49:20 +0100 |
commit | 7c8920c9dc6449f9d9a76dac619e6829398ec7db (patch) | |
tree | 0c7badbaf476e812a644e7c64580c84fe8e9f789 /app/services/projects/hashed_storage | |
parent | 4bae61005dd835c7c8bf3ce911328a8e8af86a93 (diff) | |
download | gitlab-ce-7c8920c9dc6449f9d9a76dac619e6829398ec7db.tar.gz |
Extract common logic to HashedStorage::BaseWorker
New class contains the ExclusiveLease specifics that is shared among
both the Migration and Rollback workers.
Diffstat (limited to 'app/services/projects/hashed_storage')
-rw-r--r-- | app/services/projects/hashed_storage/base_repository_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/projects/hashed_storage/base_repository_service.rb b/app/services/projects/hashed_storage/base_repository_service.rb index 00a6af5238e..a682df35d4c 100644 --- a/app/services/projects/hashed_storage/base_repository_service.rb +++ b/app/services/projects/hashed_storage/base_repository_service.rb @@ -39,6 +39,8 @@ module Projects if !from_exists && !to_exists logger.warn "Can't find a repository on either source or target paths for #{project.full_path} (ID=#{project.id}) ..." + # We return true so we still reflect the change in the database. + # Next time the repository is (re)created it will be under the new storage layout return true elsif !from_exists # Repository have been moved already. |