Skip to content

Commit

Permalink
handle serializing/deserializing attemptCounter in the necessary vers…
Browse files Browse the repository at this point in the history
…ions only
  • Loading branch information
jkakavas committed Mar 4, 2019
1 parent cbc626d commit 5b153e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public TokensInvalidationResult(StreamInput in) throws IOException {
this.invalidatedTokens = in.readStringList();
this.previouslyInvalidatedTokens = in.readStringList();
this.errors = in.readList(StreamInput::readException);
if (in.getVersion().before(Version.V_8_0_0)) {
if (in.getVersion().before(Version.V_7_1_0)) {
in.readVInt();
}
}
Expand Down Expand Up @@ -97,7 +97,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeStringCollection(invalidatedTokens);
out.writeStringCollection(previouslyInvalidatedTokens);
out.writeCollection(errors, StreamOutput::writeException);
if (out.getVersion().before(Version.V_8_0_0)) {
if (out.getVersion().before(Version.V_7_1_0)) {
out.writeVInt(5);
}
}
Expand Down

0 comments on commit 5b153e4

Please sign in to comment.