Skip to content

Commit

Permalink
Correct backport replica rollback to 6.2 (#28181)
Browse files Browse the repository at this point in the history
The previous backport was not corect.

Relates #28181
  • Loading branch information
dnhatn committed Jan 13, 2018
1 parent 0151c15 commit 9774ba3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ public void writeTo(StreamOutput out) throws IOException {
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);
}
}
Expand Down

0 comments on commit 9774ba3

Please sign in to comment.