Remove Gitlab::Geo::Fdw.expire_cache! method

parent d8d0f482
......@@ -7,12 +7,6 @@ module Gitlab
FOREIGN_SERVER = '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
# Return if FDW is enabled for this instance
#
......@@ -56,10 +50,6 @@ module Gitlab
end
end
def expire_cache!
Gitlab::Geo.expire_cache_keys!(CACHE_KEYS)
end
private
def fdw_capable?
......
......@@ -138,14 +138,6 @@ RSpec.describe Gitlab::Geo::Fdw, :geo do
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
Geo::TrackingBase.connection
end
......
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