Skip to content

Commit ab18bde

Browse files
committed
Use readLong/writeLong for serializing seq. no.
When serializing sequence numbers in StartRecoveryRequest we use readZLong/writeZLong. This is inconsistent with how these are handled in other places. This commit makes StartRecoveryRequest consistent with the handling in other places.
1 parent b6e6cc3 commit ab18bde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/elasticsearch/indices/recovery/StartRecoveryRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void readFrom(StreamInput in) throws IOException {
113113
metadataSnapshot = new Store.MetadataSnapshot(in);
114114
primaryRelocation = in.readBoolean();
115115
if (in.getVersion().onOrAfter(Version.V_6_0_0_alpha1_UNRELEASED)) {
116-
startingSeqNo = in.readZLong();
116+
startingSeqNo = in.readLong();
117117
} else {
118118
startingSeqNo = SequenceNumbersService.UNASSIGNED_SEQ_NO;
119119
}
@@ -129,7 +129,7 @@ public void writeTo(StreamOutput out) throws IOException {
129129
metadataSnapshot.writeTo(out);
130130
out.writeBoolean(primaryRelocation);
131131
if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1_UNRELEASED)) {
132-
out.writeZLong(startingSeqNo);
132+
out.writeLong(startingSeqNo);
133133
}
134134
}
135135

0 commit comments

Comments
 (0)