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
afbf43c5
Commit
afbf43c5
authored
Nov 30, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove batch_size from Geo::AttachmentRegistryFinder methods
parent
903412d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
ee/app/finders/geo/attachment_registry_finder.rb
ee/app/finders/geo/attachment_registry_finder.rb
+4
-12
No files found.
ee/app/finders/geo/attachment_registry_finder.rb
View file @
afbf43c5
module
Geo
class
AttachmentRegistryFinder
<
RegistryFinder
def
find_synced_attachments
(
batch_size:
nil
)
def
find_synced_attachments
relation
=
if
Gitlab
::
Geo
.
fdw?
fdw_find_synced_attachments
...
...
@@ -8,14 +8,10 @@ module Geo
legacy_find_synced_attachments
end
if
batch_size
relation
.
limit
(
batch_size
)
else
relation
end
relation
end
def
find_failed_attachments
(
batch_size:
nil
)
def
find_failed_attachments
relation
=
if
Gitlab
::
Geo
.
fdw?
fdw_find_failed_attachments
...
...
@@ -23,11 +19,7 @@ module Geo
legacy_find_failed_attachments
end
if
batch_size
relation
.
limit
(
batch_size
)
else
relation
end
relation
end
private
...
...
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