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
b7ef0a91
Commit
b7ef0a91
authored
Dec 06, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `Geo::RegistryFinder#fdw?` to `use_legacy_queries?`
parent
54b26296
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
+20
-20
ee/app/finders/geo/attachment_registry_finder.rb
ee/app/finders/geo/attachment_registry_finder.rb
+6
-6
ee/app/finders/geo/file_registry_finder.rb
ee/app/finders/geo/file_registry_finder.rb
+6
-6
ee/app/finders/geo/project_registry_finder.rb
ee/app/finders/geo/project_registry_finder.rb
+6
-6
ee/app/finders/geo/registry_finder.rb
ee/app/finders/geo/registry_finder.rb
+2
-2
No files found.
ee/app/finders/geo/attachment_registry_finder.rb
View file @
b7ef0a91
...
...
@@ -2,10 +2,10 @@ module Geo
class
AttachmentRegistryFinder
<
RegistryFinder
def
find_synced_attachments
relation
=
if
fdw?
fdw_find_synced_attachments
else
if
use_legacy_queries?
legacy_find_synced_attachments
else
fdw_find_synced_attachments
end
relation
...
...
@@ -13,10 +13,10 @@ module Geo
def
find_failed_attachments
relation
=
if
fdw?
fdw_find_failed_attachments
else
if
use_legacy_queries?
legacy_find_failed_attachments
else
fdw_find_failed_attachments
end
relation
...
...
ee/app/finders/geo/file_registry_finder.rb
View file @
b7ef0a91
...
...
@@ -22,10 +22,10 @@ module Geo
# Selective project replication adds a wrinkle to FDW queries, so
# we fallback to the legacy version for now.
relation
=
if
fdw?
fdw_find_nonreplicated_lfs_objects
else
if
use_legacy_queries?
legacy_find_nonreplicated_lfs_objects
(
except_registry_ids:
except_registry_ids
)
else
fdw_find_nonreplicated_lfs_objects
end
relation
...
...
@@ -48,10 +48,10 @@ module Geo
# Selective project replication adds a wrinkle to FDW queries, so
# we fallback to the legacy version for now.
relation
=
if
fdw?
fdw_find_nonreplicated_uploads
else
if
use_legacy_queries?
legacy_find_nonreplicated_uploads
(
except_registry_ids:
except_registry_ids
)
else
fdw_find_nonreplicated_uploads
end
relation
...
...
ee/app/finders/geo/project_registry_finder.rb
View file @
b7ef0a91
...
...
@@ -28,10 +28,10 @@ module Geo
def
find_unsynced_projects
(
batch_size
:)
relation
=
if
fdw?
fdw_find_unsynced_projects
else
if
use_legacy_queries?
legacy_find_unsynced_projects
else
fdw_find_unsynced_projects
end
relation
.
limit
(
batch_size
)
...
...
@@ -39,10 +39,10 @@ module Geo
def
find_projects_updated_recently
(
batch_size
:)
relation
=
if
fdw?
fdw_find_projects_updated_recently
else
if
use_legacy_queries?
legacy_find_projects_updated_recently
else
fdw_find_projects_updated_recently
end
relation
.
limit
(
batch_size
)
...
...
ee/app/finders/geo/registry_finder.rb
View file @
b7ef0a91
...
...
@@ -10,10 +10,10 @@ module Geo
protected
def
fdw
?
def
use_legacy_queries
?
# Selective project replication adds a wrinkle to FDW
# queries, so we fallback to the legacy version for now.
Gitlab
::
Geo
.
fdw?
&&
!
selective_sync?
!
Gitlab
::
Geo
.
fdw?
||
selective_sync?
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