Skip to content

Commit

Permalink
[ML] adjust BWC for PR (#35645)
Browse files Browse the repository at this point in the history
  • Loading branch information
benwtrent committed Nov 19, 2018
1 parent b3a4e28 commit 2e475f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public AnalysisConfig(StreamInput in) throws IOException {

// BWC for result_finalization_window and overlapping_buckets
// TODO Remove in 7.0.0
if (in.getVersion().before(Version.CURRENT)) {//setting to current before backport
if (in.getVersion().before(Version.V_6_6_0)) {
in.readOptionalBoolean();
in.readOptionalLong();
}
Expand Down Expand Up @@ -182,7 +182,7 @@ public void writeTo(StreamOutput out) throws IOException {

// BWC for result_finalization_window and overlapping_buckets
// TODO Remove in 7.0.0
if (out.getVersion().before(Version.CURRENT)) { //setting to current before backport
if (out.getVersion().before(Version.V_6_6_0)) {
out.writeOptionalBoolean(null);
out.writeOptionalLong(null);
}
Expand Down

0 comments on commit 2e475f0

Please sign in to comment.