[ML] Also adjust bwc version in job serialization
Original commit: elastic/x-pack-elasticsearch@e6231ba6d3
This commit is contained in:
parent
f3cd9a69a2
commit
e34cb2085f
|
@ -246,7 +246,7 @@ public class Job extends AbstractDiffable<Job> implements Writeable, ToXContentO
|
||||||
resultsRetentionDays = in.readOptionalLong();
|
resultsRetentionDays = in.readOptionalLong();
|
||||||
customSettings = in.readMap();
|
customSettings = in.readMap();
|
||||||
modelSnapshotId = in.readOptionalString();
|
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);
|
modelSnapshotMinVersion = Version.readVersion(in);
|
||||||
} else {
|
} else {
|
||||||
modelSnapshotMinVersion = null;
|
modelSnapshotMinVersion = null;
|
||||||
|
|
Loading…
Reference in New Issue