Convert index blocks to cluster block exceptions (#27050)

This commit is contained in:
Tanguy Leroux 2017-10-31 16:11:18 +01:00 committed by GitHub
parent 506a2c276d
commit 13cd08b1e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ public class TransportDeleteIndexTemplateAction extends TransportMasterNodeActio
@Override @Override
protected ClusterBlockException checkBlock(DeleteIndexTemplateRequest request, ClusterState state) { protected ClusterBlockException checkBlock(DeleteIndexTemplateRequest request, ClusterState state) {
return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_WRITE, ""); return state.blocks().globalBlockedException(ClusterBlockLevel.METADATA_WRITE);
} }
@Override @Override

View File

@ -66,7 +66,7 @@ public class TransportPutIndexTemplateAction extends TransportMasterNodeAction<P
@Override @Override
protected ClusterBlockException checkBlock(PutIndexTemplateRequest request, ClusterState state) { protected ClusterBlockException checkBlock(PutIndexTemplateRequest request, ClusterState state) {
return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_WRITE, ""); return state.blocks().globalBlockedException(ClusterBlockLevel.METADATA_WRITE);
} }
@Override @Override