Correct backport replica rollback to 6.2 (#28181)

The previous backport was not corect.

Relates #28181
This commit is contained in:
Nhat Nguyen 2018-01-13 14:10:23 -05:00
parent 0151c1565d
commit 9774ba35a1
1 changed files with 2 additions and 2 deletions

View File

@ -82,10 +82,10 @@ class RecoveryPrepareForTranslogOperationsRequest extends TransportRequest {
out.writeLong(recoveryId); out.writeLong(recoveryId);
shardId.writeTo(out); shardId.writeTo(out);
out.writeVInt(totalTranslogOps); 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 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); out.writeBoolean(createNewTranslog);
} }
} }