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
f2374aba
Commit
f2374aba
authored
Nov 09, 2020
by
Mike Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move verify_async to VerifiableReplicator concern
parent
2812f154
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
ee/app/models/concerns/geo/blob_replicator_strategy.rb
ee/app/models/concerns/geo/blob_replicator_strategy.rb
+0
-4
ee/app/models/concerns/geo/verifiable_replicator.rb
ee/app/models/concerns/geo/verifiable_replicator.rb
+4
-4
No files found.
ee/app/models/concerns/geo/blob_replicator_strategy.rb
View file @
f2374aba
...
...
@@ -65,9 +65,5 @@ module Geo
def
deleted_params
{
model_record_id:
model_record
.
id
,
blob_path:
blob_path
}
end
def
verify_async
Geo
::
VerificationWorker
.
perform_async
(
replicable_name
,
model_record
.
id
)
end
end
end
ee/app/models/concerns/geo/verifiable_replicator.rb
View file @
f2374aba
...
...
@@ -50,6 +50,10 @@ module Geo
verify_async
if
needs_checksum?
end
def
verify_async
Geo
::
VerificationWorker
.
perform_async
(
replicable_name
,
model_record
.
id
)
end
def
verify
checksum
=
model_record
.
calculate_checksum
update_verification_state!
(
checksum:
checksum
)
...
...
@@ -106,9 +110,5 @@ module Geo
retry_count
=
model_record
.
verification_retry_count
.
to_i
+
1
[
next_retry_time
(
retry_count
),
retry_count
]
end
def
verify_async
raise
NotImplementedError
end
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