Commit 0ad74fe 1 parent 84bd2f1 commit 0ad74fe Copy full SHA for 0ad74fe
File tree 1 file changed +2
-4
lines changed
server/src/main/java/org/opensearch/action/admin/cluster/node/stats
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -229,8 +229,7 @@ public NodeStats(StreamInput in) throws IOException {
229
229
} else {
230
230
repositoriesStats = null ;
231
231
}
232
- // TODO: change to V_2_12_0 on main after backport to 2.x
233
- if (in .getVersion ().onOrAfter (Version .V_3_0_0 )) {
232
+ if (in .getVersion ().onOrAfter (Version .V_2_12_0 )) {
234
233
admissionControlStats = in .readOptionalWriteable (AdmissionControlStats ::new );
235
234
} else {
236
235
admissionControlStats = null ;
@@ -504,8 +503,7 @@ public void writeTo(StreamOutput out) throws IOException {
504
503
if (out .getVersion ().onOrAfter (Version .V_2_12_0 )) {
505
504
out .writeOptionalWriteable (repositoriesStats );
506
505
}
507
- // TODO: change to V_2_12_0 on main after backport to 2.x
508
- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
506
+ if (out .getVersion ().onOrAfter (Version .V_2_12_0 )) {
509
507
out .writeOptionalWriteable (admissionControlStats );
510
508
}
511
509
}
You can’t perform that action at this time.
0 commit comments