Correct backport replica rollback to 6.2 (#28181)
The previous backport was not corect. Relates #28181
This commit is contained in:
parent
0151c1565d
commit
9774ba35a1
|
@ -82,10 +82,10 @@ class RecoveryPrepareForTranslogOperationsRequest extends TransportRequest {
|
|||
out.writeLong(recoveryId);
|
||||
shardId.writeTo(out);
|
||||
out.writeVInt(totalTranslogOps);
|
||||
if (out.getVersion().before(Version.V_6_2_0)) {
|
||||
if (out.getVersion().before(Version.V_6_0_0_alpha1)) {
|
||||
out.writeLong(IndexRequest.UNSET_AUTO_GENERATED_TIMESTAMP); // maxUnsafeAutoIdTimestamp
|
||||
}
|
||||
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
||||
if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
|
||||
out.writeBoolean(createNewTranslog);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue