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
d8d0f482
Commit
d8d0f482
authored
Aug 04, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Gitlab::Geo::GeoTasks#foreign_server_configured? method
parent
aa5feefc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
ee/lib/gitlab/geo/geo_tasks.rb
ee/lib/gitlab/geo/geo_tasks.rb
+0
-12
No files found.
ee/lib/gitlab/geo/geo_tasks.rb
View file @
d8d0f482
...
...
@@ -34,18 +34,6 @@ module Gitlab
exit
1
end
end
def
foreign_server_configured?
sql
=
<<~
SQL
SELECT count(1)
FROM pg_foreign_server
WHERE srvname = '
#{
Gitlab
::
Geo
::
Fdw
::
FOREIGN_SERVER
}
';
SQL
Gitlab
::
Geo
::
DatabaseTasks
.
with_geo_db
do
ActiveRecord
::
Base
.
connection
.
execute
(
sql
).
first
.
fetch
(
'count'
).
to_i
==
1
end
end
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