Skip to content

Commit

Permalink
add version compatibility from 6.4.0 after backport, see #30319 (#30390)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Sanwald committed May 10, 2018
1 parent 8d1756c commit e79894a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public String getExplanation() {

@Override
public void readFrom(StreamInput in) throws IOException {
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
index = in.readOptionalString();
} else {
index = in.readString();
Expand All @@ -92,7 +92,7 @@ public void readFrom(StreamInput in) throws IOException {

@Override
public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
out.writeOptionalString(index);
} else {
out.writeString(index);
Expand Down

0 comments on commit e79894a

Please sign in to comment.