debian-mirror-gitlab/lib/gitlab/database/reindexing.rb
2021-01-30 21:13:32 +05:30

18 lines
442 B
Ruby

# frozen_string_literal: true
module Gitlab
module Database
module Reindexing
def self.perform(index_selector)
Coordinator.new(index_selector).perform
end
def self.candidate_indexes
Gitlab::Database::PostgresIndex
.regular
.not_match("^#{ConcurrentReindex::TEMPORARY_INDEX_PREFIX}")
.not_match("^#{ConcurrentReindex::REPLACED_INDEX_PREFIX}")
end
end
end
end