[ML] Also adjust bwc version in job serialization

Original commit: elastic/x-pack-elasticsearch@e6231ba6d3
This commit is contained in:
Dimitris Athanasiou 2018-03-27 16:07:10 +01:00
parent f3cd9a69a2
commit e34cb2085f
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ public class Job extends AbstractDiffable<Job> implements Writeable, ToXContentO
resultsRetentionDays = in.readOptionalLong();
customSettings = in.readMap();
modelSnapshotId = in.readOptionalString();
if (in.getVersion().onOrAfter(Version.V_6_3_0) && in.readBoolean()) {
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1) && in.readBoolean()) {
modelSnapshotMinVersion = Version.readVersion(in);
} else {
modelSnapshotMinVersion = null;