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
1b4093d8
Commit
1b4093d8
authored
Aug 04, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Gitlab::Geo::Fdw.expire_cache! method
parent
d8d0f482
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
ee/lib/gitlab/geo/fdw.rb
ee/lib/gitlab/geo/fdw.rb
+0
-10
ee/spec/lib/gitlab/geo/fdw_spec.rb
ee/spec/lib/gitlab/geo/fdw_spec.rb
+0
-8
No files found.
ee/lib/gitlab/geo/fdw.rb
View file @
1b4093d8
...
@@ -7,12 +7,6 @@ module Gitlab
...
@@ -7,12 +7,6 @@ module Gitlab
FOREIGN_SERVER
=
'gitlab_secondary'
FOREIGN_SERVER
=
'gitlab_secondary'
FOREIGN_SCHEMA
=
'gitlab_secondary'
FOREIGN_SCHEMA
=
'gitlab_secondary'
CACHE_KEYS
=
%i(
geo_FOREIGN_SCHEMA_exist
geo_foreign_schema_tables_match
geo_fdw_count_tables
)
.
freeze
class
<<
self
class
<<
self
# Return if FDW is enabled for this instance
# Return if FDW is enabled for this instance
#
#
...
@@ -56,10 +50,6 @@ module Gitlab
...
@@ -56,10 +50,6 @@ module Gitlab
end
end
end
end
def
expire_cache!
Gitlab
::
Geo
.
expire_cache_keys!
(
CACHE_KEYS
)
end
private
private
def
fdw_capable?
def
fdw_capable?
...
...
ee/spec/lib/gitlab/geo/fdw_spec.rb
View file @
1b4093d8
...
@@ -138,14 +138,6 @@ RSpec.describe Gitlab::Geo::Fdw, :geo do
...
@@ -138,14 +138,6 @@ RSpec.describe Gitlab::Geo::Fdw, :geo do
end
end
end
end
describe
'.expire_cache!'
do
it
'calls Gitlab::Geo.expire_cache_keys!'
do
expect
(
Gitlab
::
Geo
).
to
receive
(
:expire_cache_keys!
).
with
(
Gitlab
::
Geo
::
Fdw
::
CACHE_KEYS
)
described_class
.
expire_cache!
end
end
def
with_foreign_connection
def
with_foreign_connection
Geo
::
TrackingBase
.
connection
Geo
::
TrackingBase
.
connection
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