Fix compilation for (#86591)

The above PR was merged concurrently to another one that refactored
a method name.
This commit is contained in:
Yannick Welsch 2022-05-18 10:40:14 +02:00
parent 5aebb8ee38
commit fd99a502ee

View file

@ -1672,7 +1672,7 @@ public class RestoreService implements ClusterStateApplier {
try {
Mapping mapping;
try (MapperService mapperService = indicesService.createIndexMapperService(convertedIndexMetadata)) {
try (MapperService mapperService = indicesService.createIndexMapperServiceForValidation(convertedIndexMetadata)) {
// create and validate in-memory mapping
mapperService.merge(convertedIndexMetadata, MapperService.MergeReason.MAPPING_RECOVERY);
mapping = mapperService.documentMapper().mapping();