Commit 6b830cd4 authored by Terri Chu's avatar Terri Chu

Merge branch 'revert-841f45b7' into 'master'

Revert "Fix Elastic::MigrationWorker current_migration"

See merge request gitlab-org/gitlab!70405
parents 198dd941 c2cd7a8b
......@@ -87,9 +87,9 @@ module Elastic
end
def current_migration
uncompleted_migrations = Elastic::MigrationRecord.load_versions(completed: false)
completed_migrations = Elastic::MigrationRecord.load_versions(completed: true)
Elastic::DataMigrationService.migrations.find { |migration| uncompleted_migrations.include?(migration.version) }
Elastic::DataMigrationService.migrations.find { |migration| !completed_migrations.include?(migration.version) }
end
def pause_indexing!(migration)
......
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