Skip to content

Commit

Permalink
false
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed Jan 23, 2025
1 parent da7ba9c commit 2c21630
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public static void updateIndexSettings(
private static void verifyReadOnlyIndices(@Nullable Set<Index> readOnlyIndices, ClusterBlocks blocks) {
if (readOnlyIndices != null) {
for (Index readOnlyIndex : readOnlyIndices) {
if (blocks.indexBlocked(ClusterBlockLevel.WRITE, readOnlyIndex.getName())) {
if (blocks.indexBlocked(ClusterBlockLevel.WRITE, readOnlyIndex.getName()) == false) {
throw new IllegalArgumentException(
String.format(Locale.ROOT, "Can't remove the `write` level block for read-only compatible index %s", readOnlyIndex)
);
Expand Down

0 comments on commit 2c21630

Please sign in to comment.