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
26aefe26
Commit
26aefe26
authored
Nov 09, 2020
by
Mike Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename schedule_checksum_calculation to verify_async
parent
650b4e4f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ee/app/models/concerns/geo/blob_replicator_strategy.rb
ee/app/models/concerns/geo/blob_replicator_strategy.rb
+1
-1
ee/app/models/concerns/geo/verifiable_replicator.rb
ee/app/models/concerns/geo/verifiable_replicator.rb
+2
-2
ee/spec/support/shared_examples/models/concerns/verifiable_replicator_shared_examples.rb
.../models/concerns/verifiable_replicator_shared_examples.rb
+2
-2
No files found.
ee/app/models/concerns/geo/blob_replicator_strategy.rb
View file @
26aefe26
...
...
@@ -66,7 +66,7 @@ module Geo
{
model_record_id:
model_record
.
id
,
blob_path:
blob_path
}
end
def
schedule_checksum_calculation
def
verify_async
Geo
::
VerificationWorker
.
perform_async
(
replicable_name
,
model_record
.
id
)
end
end
...
...
ee/app/models/concerns/geo/verifiable_replicator.rb
View file @
26aefe26
...
...
@@ -47,7 +47,7 @@ module Geo
end
def
after_verifiable_update
schedule_checksum_calculation
if
needs_checksum?
verify_async
if
needs_checksum?
end
def
verify
...
...
@@ -107,7 +107,7 @@ module Geo
[
next_retry_time
(
retry_count
),
retry_count
]
end
def
schedule_checksum_calculation
def
verify_async
raise
NotImplementedError
end
end
...
...
ee/spec/support/shared_examples/models/concerns/verifiable_replicator_shared_examples.rb
View file @
26aefe26
...
...
@@ -40,8 +40,8 @@ RSpec.shared_examples 'a verifiable replicator' do
end
describe
'#after_verifiable_update'
do
it
'
schedules the checksum calculation
if needed'
do
expect
(
replicator
).
to
receive
(
:
schedule_checksum_calculation
)
it
'
calls verify_async
if needed'
do
expect
(
replicator
).
to
receive
(
:
verify_async
)
expect
(
replicator
).
to
receive
(
:needs_checksum?
).
and_return
(
true
)
replicator
.
after_verifiable_update
...
...
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