Skip to content

Commit

Permalink
Change supported version in serialization code to 7.4.0 after backport (
Browse files Browse the repository at this point in the history
  • Loading branch information
przemekwitek authored Aug 22, 2019
1 parent a66170a commit 77267ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public Request() {}
public Request(StreamInput in) throws IOException {
super(in);
indices = in.readStringArray();
if (in.getVersion().onOrAfter(Version.CURRENT)) {
if (in.getVersion().onOrAfter(Version.V_7_4_0)) {
if (in.readBoolean()) {
queryProvider = QueryProvider.fromStream(in);
}
Expand Down Expand Up @@ -138,7 +138,7 @@ public ActionRequestValidationException validate() {
public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
out.writeStringArray(indices);
if (out.getVersion().onOrAfter(Version.CURRENT)) {
if (out.getVersion().onOrAfter(Version.V_7_4_0)) {
if (queryProvider != null) {
out.writeBoolean(true);
queryProvider.writeTo(out);
Expand Down

0 comments on commit 77267ad

Please sign in to comment.