Skip to content

Commit

Permalink
Update version of TaskInfo header serialization after backport
Browse files Browse the repository at this point in the history
Update the serialization version after backporting #27764 to 6.x.
  • Loading branch information
imotov committed Jan 15, 2018
1 parent fbb840b commit aec0c0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/main/java/org/elasticsearch/tasks/TaskInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public TaskInfo(StreamInput in) throws IOException {
runningTimeNanos = in.readLong();
cancellable = in.readBoolean();
parentTaskId = TaskId.readFromStream(in);
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (in.getVersion().onOrAfter(Version.V_6_2_0)) {
headers = in.readMap(StreamInput::readString, StreamInput::readString);
} else {
headers = Collections.emptyMap();
Expand All @@ -115,7 +115,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeLong(runningTimeNanos);
out.writeBoolean(cancellable);
parentTaskId.writeTo(out);
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
out.writeMap(headers, StreamOutput::writeString, StreamOutput::writeString);
}
}
Expand Down

0 comments on commit aec0c0f

Please sign in to comment.