# frozen_string_literal: true
module Geo::SelectiveSync
extend ActiveSupport::Concern
def selective_sync?
selective_sync_type.present?
end
def selective_sync_by_namespaces?
selective_sync_type == 'namespaces'
end
def selective_sync_by_shards?
selective_sync_type == 'shards'
end
end
-
Douglas Barbosa Alexandre authored
This method allow us to enable selective sync support for the FDW queries to count synced registries.
87ad78ae