mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
Fix compilation for (#86591)
The above PR was merged concurrently to another one that refactored a method name.
This commit is contained in:
parent
5aebb8ee38
commit
fd99a502ee
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue