fix serialization of DeleteRequest
@@ -277,7 +277,7 @@ public class DeleteRequest extends ReplicatedWriteRequest<DeleteRequest>
parent = in.readOptionalString();
version = in.readLong();
versionType = VersionType.fromValue(in.readByte());
- if (in.getVersion().onOrAfter(Version.V_6_0_0)) {
+ if (in.getVersion().onOrAfter(Version.V_6_6_0)) {
ifSeqNo = in.readZLong();
ifPrimaryTerm = in.readVLong();
} else {
@@ -295,7 +295,7 @@ public class DeleteRequest extends ReplicatedWriteRequest<DeleteRequest>
out.writeOptionalString(parent());
out.writeLong(version);
out.writeByte(versionType.getValue());
- if (out.getVersion().onOrAfter(Version.V_6_0_0)) {
+ if (out.getVersion().onOrAfter(Version.V_6_6_0)) {
out.writeZLong(ifSeqNo);
out.writeVLong(ifPrimaryTerm);
} else if (ifSeqNo != SequenceNumbers.UNASSIGNED_SEQ_NO || ifPrimaryTerm != 0) {
