Skip to content

Commit 9ceb218

Browse files
committed
Adjust bwc version for put mapping requests
Relates #37675
1 parent 0a850f0 commit 9ceb218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/action/admin/indices/mapping/put/PutMappingRequest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public void readFrom(StreamInput in) throws IOException {
312312
in.readBoolean(); // updateAllTypes
313313
}
314314
concreteIndex = in.readOptionalWriteable(Index::new);
315-
if (in.getVersion().onOrAfter(Version.V_7_0_0)) {
315+
if (in.getVersion().onOrAfter(Version.V_6_7_0)) {
316316
origin = in.readOptionalString();
317317
} else {
318318
origin = null;
@@ -330,7 +330,7 @@ public void writeTo(StreamOutput out) throws IOException {
330330
out.writeBoolean(true); // updateAllTypes
331331
}
332332
out.writeOptionalWriteable(concreteIndex);
333-
if (out.getVersion().onOrAfter(Version.V_7_0_0)) {
333+
if (out.getVersion().onOrAfter(Version.V_6_7_0)) {
334334
out.writeOptionalString(origin);
335335
}
336336
}

0 commit comments

Comments
 (0)