Skip to content

Commit 9774ba3

Browse files
committed
Correct backport replica rollback to 6.2 (#28181)
The previous backport was not corect. Relates #28181
1 parent 0151c15 commit 9774ba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/indices/recovery/RecoveryPrepareForTranslogOperationsRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ public void writeTo(StreamOutput out) throws IOException {
8282
out.writeLong(recoveryId);
8383
shardId.writeTo(out);
8484
out.writeVInt(totalTranslogOps);
85-
if (out.getVersion().before(Version.V_6_2_0)) {
85+
if (out.getVersion().before(Version.V_6_0_0_alpha1)) {
8686
out.writeLong(IndexRequest.UNSET_AUTO_GENERATED_TIMESTAMP); // maxUnsafeAutoIdTimestamp
8787
}
88-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
88+
if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
8989
out.writeBoolean(createNewTranslog);
9090
}
9191
}

0 commit comments

Comments
 (0)