Skip to content

Commit 16687bd

Browse files
dnhatnkcm
authored andcommitted
Adjust bwc for resync request (#33964)
Relates #33964
1 parent 570f4a5 commit 16687bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/action/resync/ResyncReplicationRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void readFrom(final StreamInput in) throws IOException {
8181
} else {
8282
trimAboveSeqNo = SequenceNumbers.UNASSIGNED_SEQ_NO;
8383
}
84-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
84+
if (in.getVersion().onOrAfter(Version.V_6_5_0)) {
8585
maxSeenAutoIdTimestampOnPrimary = in.readZLong();
8686
} else {
8787
maxSeenAutoIdTimestampOnPrimary = IndexRequest.UNSET_AUTO_GENERATED_TIMESTAMP;
@@ -95,7 +95,7 @@ public void writeTo(final StreamOutput out) throws IOException {
9595
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
9696
out.writeZLong(trimAboveSeqNo);
9797
}
98-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
98+
if (out.getVersion().onOrAfter(Version.V_6_5_0)) {
9999
out.writeZLong(maxSeenAutoIdTimestampOnPrimary);
100100
}
101101
out.writeArray(Translog.Operation::writeOperation, operations);

0 commit comments

Comments
 (0)