summaryrefslogtreecommitdiff
path: root/app/services/projects
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-11-22 06:35:53 +0100
committerGabriel Mazetto <brodock@gmail.com>2017-11-23 14:19:36 +0100
commit65bd6868d014e23c21e4d5ecff468124b2c72f4c (patch)
tree16a9413dfe0564e0454e924b5974308f7b5488c5 /app/services/projects
parent4b87c1afaa652d72fa6aeeb4fe52fa3883e2f4c8 (diff)
downloadgitlab-ce-65bd6868d014e23c21e4d5ecff468124b2c72f4c.tar.gz
Codestyle changes and Added Exclusive Lease to hashed storage migration
Diffstat (limited to 'app/services/projects')
-rw-r--r--app/services/projects/hashed_storage/migrate_attachments_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/hashed_storage/migrate_attachments_service.rb b/app/services/projects/hashed_storage/migrate_attachments_service.rb
index b58b6f57ed7..93f44110605 100644
--- a/app/services/projects/hashed_storage/migrate_attachments_service.rb
+++ b/app/services/projects/hashed_storage/migrate_attachments_service.rb
@@ -33,7 +33,7 @@ module Projects
end
# Create hashed storage base path folder
- FileUtils.mkdir_p(File.expand_path('..', new_path))
+ FileUtils.mkdir_p(File.dirname(new_path))
FileUtils.mv(old_path, new_path)
logger.info("Migrated project attachments from '#{old_path}' to '#{new_path}' (PROJECT_ID=#{project.id})")