Skip to content

Commit

Permalink
Fix deprecation check.
Browse files Browse the repository at this point in the history
  • Loading branch information
henningandersen committed Jan 16, 2025
1 parent 3b80145 commit a3b99a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ && isNotSearchableSnapshot(indexMetadata)

private static boolean isNotVerifiedReadOnly(IndexMetadata indexMetadata) {
// no need to check blocks.
return MetadataIndexStateService.VERIFIED_READ_ONLY_SETTING.get(indexMetadata.getSettings());
return MetadataIndexStateService.VERIFIED_READ_ONLY_SETTING.get(indexMetadata.getSettings()) == false;
}

private static boolean isNotSearchableSnapshot(IndexMetadata indexMetadata) {
Expand Down

0 comments on commit a3b99a0

Please sign in to comment.