Commit 76b88e1 Ajay Kumar Movva
committed
1 parent 1467c4d commit 76b88e1 Copy full SHA for 76b88e1
File tree 1 file changed +3
-3
lines changed
server/src/main/java/org/opensearch/action/admin/cluster/node/stats
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ public NodeStats(StreamInput in) throws IOException {
243
243
repositoriesStats = null ;
244
244
}
245
245
// TODO: change to V_2_12_0 on main after backport to 2.x
246
- if (in .getVersion ().onOrAfter (Version .V_3_0_0 )) {
246
+ if (in .getVersion ().onOrAfter (Version .V_2_12_0 )) {
247
247
admissionControlStats = in .readOptionalWriteable (AdmissionControlStats ::new );
248
248
} else {
249
249
admissionControlStats = null ;
@@ -523,8 +523,8 @@ public void writeTo(StreamOutput out) throws IOException {
523
523
if (out .getVersion ().onOrAfter (Version .V_2_12_0 )) {
524
524
out .writeOptionalWriteable (repositoriesStats );
525
525
}
526
- // TODO: change to V_2_12_0 on main after backport to 2.x
527
- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
526
+
527
+ if (out .getVersion ().onOrAfter (Version .V_2_12_0 )) {
528
528
out .writeOptionalWriteable (admissionControlStats );
529
529
}
530
530
}
You can’t perform that action at this time.
0 commit comments