Skip to content

Commit fd99a50

Browse files
committed
Fix compilation for (#86591)
The above PR was merged concurrently to another one that refactored a method name.
1 parent 5aebb8e commit fd99a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/snapshots/RestoreService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ private static IndexMetadata convertLegacyIndex(
16721672

16731673
try {
16741674
Mapping mapping;
1675-
try (MapperService mapperService = indicesService.createIndexMapperService(convertedIndexMetadata)) {
1675+
try (MapperService mapperService = indicesService.createIndexMapperServiceForValidation(convertedIndexMetadata)) {
16761676
// create and validate in-memory mapping
16771677
mapperService.merge(convertedIndexMetadata, MapperService.MergeReason.MAPPING_RECOVERY);
16781678
mapping = mapperService.documentMapper().mapping();

0 commit comments

Comments
 (0)