Skip to content

Commit

Permalink
Updating version for wait-for-snapshot feature after backporting to 7…
Browse files Browse the repository at this point in the history
….15 (#75907)

After backporting the fix for #73357, updating the version of serialization compatibility for the snapshot start_time field to 7.15.0..
  • Loading branch information
masseyke authored Jul 30, 2021
1 parent 3d6c428 commit 2dcc337
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2dcc337

Please sign in to comment.