Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8918d671
Commit
8918d671
authored
Jan 16, 2018
by
Micaël Bergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop reusing the upload model when recording a new upload
I hope this will fix the Geo failure.
parent
54ed1882
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/upload.rb
app/models/upload.rb
+1
-1
app/services/geo/files_expire_service.rb
app/services/geo/files_expire_service.rb
+1
-1
lib/gitlab/background_migration/populate_untracked_uploads.rb
...gitlab/background_migration/populate_untracked_uploads.rb
+1
-1
No files found.
app/models/upload.rb
View file @
8918d671
...
...
@@ -17,7 +17,7 @@ class Upload < ActiveRecord::Base
end
def
self
.
record
(
uploader
)
upload
=
uploader
.
upload
||
new
upload
=
uploader
.
upload
&
.
dup
||
new
upload
.
update_attributes
(
size:
uploader
.
file
.
size
,
...
...
app/services/geo/files_expire_service.rb
View file @
8918d671
...
...
@@ -34,7 +34,7 @@ module Geo
#
# @return base directory where all uploads for the project are stored
def
base_dir
@base_dir
||=
File
.
join
(
CarrierWave
.
root
,
FileUploader
.
base_dir
,
old_full_path
)
@base_dir
||=
File
.
join
(
FileUploader
.
root
,
old_full_path
)
end
private
...
...
lib/gitlab/background_migration/populate_untracked_uploads.rb
View file @
8918d671
...
...
@@ -143,7 +143,7 @@ module Gitlab
end
def
absolute_path
File
.
join
(
CarrierWave
.
root
,
path
)
File
.
join
(
Gitlab
.
config
.
uploads
.
storage_path
,
path
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment