Removed unneeded refresh during post recovery.

and removed an obsolete exception, `_percolator` type is now `.percolator` since version 1.0
This commit is contained in:
Martijn van Groningen 2016-03-31 10:19:27 +02:00
parent 57059f1410
commit 5ff68d173d
2 changed files with 1 additions and 4 deletions

View File

@ -296,7 +296,7 @@ public class MetaDataMappingService extends AbstractComponent {
}
assert mappingType != null;
if (!MapperService.DEFAULT_MAPPING.equals(mappingType) && !PercolatorFieldMapper.TYPE_NAME.equals(mappingType) && mappingType.charAt(0) == '_') {
if (!MapperService.DEFAULT_MAPPING.equals(mappingType) && mappingType.charAt(0) == '_') {
throw new InvalidTypeNameException("Document mapping type name can't start with '_'");
}
MetaData.Builder builder = MetaData.builder(metaData);

View File

@ -806,9 +806,6 @@ public class IndexShard extends AbstractIndexShardComponent {
}
public IndexShard postRecovery(String reason) throws IndexShardStartedException, IndexShardRelocatedException, IndexShardClosedException {
if (mapperService.hasMapping(PercolatorFieldMapper.TYPE_NAME)) {
refresh("percolator_load_queries");
}
synchronized (mutex) {
if (state == IndexShardState.CLOSED) {
throw new IndexShardClosedException(shardId);