Commit 702ca824 authored by Dylan Griffith's avatar Dylan Griffith

Merge branch '281934_fix_rake_task' into 'master'

Fix an issue in the create_empty_index rake task

See merge request gitlab-org/gitlab!47575
parents 88a60d6b 7106542d
---
title: Fix an issue in the create_empty_index rake task
merge_request: 47575
author:
type: fixed
......@@ -68,7 +68,7 @@ namespace :gitlab do
helper = Gitlab::Elastic::Helper.new(target_name: args[:target_name])
index_name = helper.create_empty_index(with_alias: with_alias, options: options)
helper.create_migrations_index unless helper.index_exists?(index_name: migrations_index_name)
helper.create_migrations_index unless helper.index_exists?(index_name: helper.migrations_index_name)
::Elastic::DataMigrationService.mark_all_as_completed!
puts "Index '#{index_name}' has been created.".color(:green)
......
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