File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
server/src/main/java/org/elasticsearch/tasks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public TaskInfo(StreamInput in) throws IOException {
97
97
runningTimeNanos = in .readLong ();
98
98
cancellable = in .readBoolean ();
99
99
parentTaskId = TaskId .readFromStream (in );
100
- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
100
+ if (in .getVersion ().onOrAfter (Version .V_6_2_0 )) {
101
101
headers = in .readMap (StreamInput ::readString , StreamInput ::readString );
102
102
} else {
103
103
headers = Collections .emptyMap ();
@@ -115,7 +115,7 @@ public void writeTo(StreamOutput out) throws IOException {
115
115
out .writeLong (runningTimeNanos );
116
116
out .writeBoolean (cancellable );
117
117
parentTaskId .writeTo (out );
118
- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
118
+ if (out .getVersion ().onOrAfter (Version .V_6_2_0 )) {
119
119
out .writeMap (headers , StreamOutput ::writeString , StreamOutput ::writeString );
120
120
}
121
121
}
You can’t perform that action at this time.
0 commit comments