Commit 6eb2b1bb authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre Committed by Ash McKenzie

Remove legacy query to find synced attachments

This commit removes the legacy queries to find synced
attachments since we made Foreign Data Wrapper (FDW)
a hard requirement for Geo on GitLab 12.0.
parent 41f48dbb
...@@ -118,13 +118,7 @@ module Geo ...@@ -118,13 +118,7 @@ module Geo
end end
def attachments_synced def attachments_synced
if use_legacy_queries_for_selective_sync? registries_for_attachments.syncable.merge(Geo::FileRegistry.synced)
legacy_finder.attachments_synced
else
registries_for_attachments
.syncable
.merge(Geo::FileRegistry.synced)
end
end end
def attachments_migrated_local(except_file_ids:) def attachments_migrated_local(except_file_ids:)
......
...@@ -6,14 +6,6 @@ module Geo ...@@ -6,14 +6,6 @@ module Geo
attachments.syncable attachments.syncable
end end
def attachments_synced
legacy_inner_join_registry_ids(
syncable,
Geo::FileRegistry.attachments.synced.pluck_file_key,
Upload
)
end
def attachments_migrated_local(except_file_ids:) def attachments_migrated_local(except_file_ids:)
registry_file_ids = Geo::FileRegistry.attachments.pluck_file_key - except_file_ids registry_file_ids = Geo::FileRegistry.attachments.pluck_file_key - except_file_ids
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment