Update version of TaskInfo header serialization after backport
Update the serialization version after backporting #27764 to 6.x.
This commit is contained in:
parent
fbb840b5c8
commit
aec0c0f9b6
|
@ -97,7 +97,7 @@ public final class TaskInfo implements Writeable, ToXContentFragment {
|
|||
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();
|
||||
|
@ -115,7 +115,7 @@ public final class TaskInfo implements Writeable, ToXContentFragment {
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue