Skip to content

Commit

Permalink
Adapt BWC conditions after backport of (#58100)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywelsch committed Jun 18, 2020
1 parent b305454 commit e766c39
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public AliasActions(StreamInput in) throws IOException {
isHidden = in.readOptionalBoolean();
}
originalAliases = in.readStringArray();
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_9_0)) {
mustExist = in.readOptionalBoolean();
} else {
mustExist = null;
Expand All @@ -279,7 +279,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeOptionalBoolean(isHidden);
}
out.writeStringArray(originalAliases);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_9_0)) {
out.writeOptionalBoolean(mustExist);
}
}
Expand Down

0 comments on commit e766c39

Please sign in to comment.