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
97cb306f
Commit
97cb306f
authored
Nov 10, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo: address review comments
parent
c1f45237
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
app/services/geo/base_sync_service.rb
app/services/geo/base_sync_service.rb
+3
-1
app/services/geo/repository_sync_service.rb
app/services/geo/repository_sync_service.rb
+1
-0
No files found.
app/services/geo/base_sync_service.rb
View file @
97cb306f
require
'securerandom'
module
Geo
# The clone_url_prefix is used to build URLs for the Geo synchronization
# If this is missing from the primary node we raise this exception
...
...
@@ -173,7 +175,7 @@ module Geo
def
disk_path_temp
unless
@disk_path_temp
random_string
=
(
0
...
6
).
map
{
(
'a'
..
'z'
).
to_a
.
sample
}.
join
random_string
=
SecureRandom
.
hex
(
7
)
@disk_path_temp
=
"
#{
repository
.
disk_path
}
_
#{
random_string
}
"
end
...
...
app/services/geo/repository_sync_service.rb
View file @
97cb306f
...
...
@@ -34,6 +34,7 @@ module Geo
log_error
(
'Error syncing repository'
,
e
)
rescue
Gitlab
::
Git
::
Repository
::
NoRepository
=>
e
log_error
(
'Invalid repository'
,
e
)
log_info
(
'Setting force_to_redownload flag'
)
registry
.
update
(
force_to_redownload_repository:
true
)
log_info
(
'Expiring caches'
)
project
.
repository
.
after_create
...
...
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