Skip to content

Commit e7ad37d

Browse files
authored
Change version checks from CURRENT to 2.18 (opensearch-project#16174)
Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
1 parent 4e3a6d0 commit e7ad37d

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

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ public NodeStats(StreamInput in) throws IOException {
247247
} else {
248248
nodeCacheStats = null;
249249
}
250-
// TODO: change version to V_2_18_0
251-
if (in.getVersion().onOrAfter(Version.CURRENT)) {
250+
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
252251
remoteStoreNodeStats = in.readOptionalWriteable(RemoteStoreNodeStats::new);
253252
} else {
254253
remoteStoreNodeStats = null;
@@ -542,8 +541,7 @@ public void writeTo(StreamOutput out) throws IOException {
542541
if (out.getVersion().onOrAfter(Version.V_2_14_0)) {
543542
out.writeOptionalWriteable(nodeCacheStats);
544543
}
545-
// TODO: change version to V_2_18_0
546-
if (out.getVersion().onOrAfter(Version.CURRENT)) {
544+
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
547545
out.writeOptionalWriteable(remoteStoreNodeStats);
548546
}
549547
}

0 commit comments

Comments
 (0)