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 (#50436)
  • Loading branch information
przemekwitek authored Dec 20, 2019
1 parent 7f81467 commit 09b9ecb
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 09b9ecb

Please sign in to comment.