Skip to content

Commit e79894a

Browse files
author
Paul Sanwald
authored
add version compatibility from 6.4.0 after backport, see #30319 (#30390)
1 parent 8d1756c commit e79894a

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/validate/query/QueryExplanation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public String getExplanation() {
7575

7676
@Override
7777
public void readFrom(StreamInput in) throws IOException {
78-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
78+
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
7979
index = in.readOptionalString();
8080
} else {
8181
index = in.readString();
@@ -92,7 +92,7 @@ public void readFrom(StreamInput in) throws IOException {
9292

9393
@Override
9494
public void writeTo(StreamOutput out) throws IOException {
95-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
95+
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
9696
out.writeOptionalString(index);
9797
} else {
9898
out.writeString(index);

0 commit comments

Comments
 (0)