ee/app/models/geo_node_status.rb
# This method only is useful when the storage shard information is loaded
# from a remote node via JSON.
This method only is useful when the storage shard information is loaded
from a remote node via JSON.
This method only is useful when the storage shard information is loaded from a remote node via JSON .
def storage_shards_match?
    return unless Gitlab::Geo.primary?
    return unless current_shards && primary_shards
    shards_match?(current_shards, primary_shards)
  end
def storage_shards_match? return unless Gitlab :: Geo . primary? return unless current_shards && primary_shards shards_match? ( current_shards , primary_shards ) end
This method only is useful when the storage shard information is loaded
from a remote node via JSON.
This method only is useful when the storage shard information is loaded from a remote node via JSON .