diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java index 5d2334083f516..55ef99e155781 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java @@ -64,7 +64,7 @@ public SnapshotInvocationRecord(String snapshotName, Long snapshotStartTimestamp public SnapshotInvocationRecord(StreamInput in) throws IOException { this.snapshotName = in.readString(); - if (in.getVersion().onOrAfter(Version.V_8_0_0)) { + if (in.getVersion().onOrAfter(Version.V_7_15_0)) { this.snapshotStartTimestamp = in.readOptionalVLong(); } else { this.snapshotStartTimestamp = null; @@ -93,7 +93,7 @@ public String getDetails() { @Override public void writeTo(StreamOutput out) throws IOException { out.writeString(snapshotName); - if (out.getVersion().onOrAfter(Version.V_8_0_0)) { + if (out.getVersion().onOrAfter(Version.V_7_15_0)) { out.writeOptionalVLong(snapshotStartTimestamp); } out.writeVLong(snapshotFinishTimestamp);