Skip to content

Commit

Permalink
Now, that the PR with aggName is backported, the version can be cha…
Browse files Browse the repository at this point in the history
…nged to 7.6 (elastic#50436)
  • Loading branch information
przemekwitek authored and SivagurunathanV committed Jan 21, 2020
1 parent f012958 commit c793b77
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public MulticlassConfusionMatrix(@Nullable Integer size, @Nullable String aggNam

public MulticlassConfusionMatrix(StreamInput in) throws IOException {
this.size = in.readVInt();
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
this.aggNamePrefix = in.readString();
} else {
this.aggNamePrefix = DEFAULT_AGG_NAME_PREFIX;
Expand Down Expand Up @@ -197,7 +197,7 @@ public Optional<Result> getResult() {
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeVInt(size);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
out.writeString(aggNamePrefix);
}
}
Expand Down

0 comments on commit c793b77

Please sign in to comment.