Skip to content

Commit

Permalink
Fixes history index iteration breaking instead of continuing (opendis…
Browse files Browse the repository at this point in the history
  • Loading branch information
dbbaughe committed Jan 16, 2020
1 parent 486f833 commit 43e7c16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class IndexStateManagementHistory(
val alias = indexMetaData.aliases.firstOrNull { IndexStateManagementIndices.HISTORY_WRITE_INDEX_ALIAS == it.value.alias }
if (alias != null && historyEnabled) {
// If index has write alias and history is enable, don't delete the index.
break
continue
}

indexToDelete.add(indexMetaData.index.name)
Expand Down

0 comments on commit 43e7c16

Please sign in to comment.