Skip to content

Commit 76b88e1

Browse files
author
Ajay Kumar Movva
committed
Updating Version to 2.12 for the AC Stats
Signed-off-by: Ajay Kumar Movva <movvaam@amazon.com>
1 parent 1467c4d commit 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

server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public NodeStats(StreamInput in) throws IOException {
243243
repositoriesStats = null;
244244
}
245245
// 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)) {
247247
admissionControlStats = in.readOptionalWriteable(AdmissionControlStats::new);
248248
} else {
249249
admissionControlStats = null;
@@ -523,8 +523,8 @@ public void writeTo(StreamOutput out) throws IOException {
523523
if (out.getVersion().onOrAfter(Version.V_2_12_0)) {
524524
out.writeOptionalWriteable(repositoriesStats);
525525
}
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)) {
528528
out.writeOptionalWriteable(admissionControlStats);
529529
}
530530
}

0 commit comments

Comments
 (0)