Skip to content

Commit 608f302

Browse files
committed
Fix
1 parent ee9eb51 commit 608f302

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

server/src/main/java/org/elasticsearch/action/bulk/TransportShardBulkAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ private static Engine.Result performOpOnReplica(
741741
final IndexRequest indexRequest = (IndexRequest) docWriteRequest;
742742
final SourceToParse sourceToParse = new SourceToParse(
743743
indexRequest.id(),
744-
indexRequest.source(),
744+
indexRequest.modernSource(),
745745
indexRequest.getContentType(),
746746
indexRequest.routing()
747747
);

server/src/main/java/org/elasticsearch/index/mapper/SourceToParse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ public SourceToParse(String id, BytesReference source, XContentType xContentType
8080
this(id, source, xContentType, routing, Map.of(), true, XContentMeteringParserDecorator.NOOP);
8181
}
8282

83+
public SourceToParse(String id, ModernSource source, XContentType xContentType, String routing) {
84+
this(id, source, xContentType, routing, Map.of(), true, XContentMeteringParserDecorator.NOOP);
85+
}
86+
8387
public SourceToParse(
8488
String id,
8589
BytesReference source,

0 commit comments

Comments
 (0)