Skip to content

Commit

Permalink
[ML][Inference] fix bwc serialization pr elastic#51330
Browse files Browse the repository at this point in the history
  • Loading branch information
benwtrent committed Jan 24, 2020
1 parent 85e5812 commit 522401a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public Request(String id, boolean includeModelDefinition, List<String> tags) {
public Request(StreamInput in) throws IOException {
super(in);
this.includeModelDefinition = in.readBoolean();
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_7_0)) {
this.tags = in.readStringList();
} else {
this.tags = Collections.emptyList();
Expand All @@ -73,7 +73,7 @@ public List<String> getTags() {
public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
out.writeBoolean(includeModelDefinition);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_7_0)) {
out.writeStringCollection(tags);
}
}
Expand Down

0 comments on commit 522401a

Please sign in to comment.