Commit d01fa8d0 authored by digitalMoksha's avatar digitalMoksha

Revert "check if the GeoNode table exists before checking its state"

This reverts commit 45eeb50d929ac794b1c98282182a4103e35d6395.
parent b01aa665
......@@ -5,7 +5,7 @@ if File.exist?(Rails.root.join('config/database_geo.yml'))
end
begin
if Gitlab::Geo.primary?
if Gitlab::Geo.connected? && Gitlab::Geo.primary?
Gitlab::Geo.current_node&.update_clone_url!
end
rescue => e
......
......@@ -38,7 +38,7 @@ module Gitlab
end
def self.enabled?
cache_value(:geo_node_enabled) { self.connected? && GeoNode.exists? }
cache_value(:geo_node_enabled) { GeoNode.exists? }
end
def self.primary?
......
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