Skip to content

Commit

Permalink
Adjust wire compat version for point in time
Browse files Browse the repository at this point in the history
Relates #66713
  • Loading branch information
dnhatn committed Jan 10, 2021
1 parent 59082c0 commit 1cbccb1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ShardSearchContextId(StreamInput in) throws IOException {
} else {
this.sessionId = "";
}
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_12_0)) {
this.searcherId = in.readOptionalString();
} else {
this.searcherId = null;
Expand All @@ -63,7 +63,7 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_7_7_0)) {
out.writeString(sessionId);
}
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_12_0)) {
out.writeOptionalString(searcherId);
}
}
Expand Down

0 comments on commit 1cbccb1

Please sign in to comment.