Commit e7ad37d 1 parent 4e3a6d0 commit e7ad37d Copy full SHA for 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 Original file line number Diff line number Diff line change @@ -247,8 +247,7 @@ public NodeStats(StreamInput in) throws IOException {
247
247
} else {
248
248
nodeCacheStats = null ;
249
249
}
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 )) {
252
251
remoteStoreNodeStats = in .readOptionalWriteable (RemoteStoreNodeStats ::new );
253
252
} else {
254
253
remoteStoreNodeStats = null ;
@@ -542,8 +541,7 @@ public void writeTo(StreamOutput out) throws IOException {
542
541
if (out .getVersion ().onOrAfter (Version .V_2_14_0 )) {
543
542
out .writeOptionalWriteable (nodeCacheStats );
544
543
}
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 )) {
547
545
out .writeOptionalWriteable (remoteStoreNodeStats );
548
546
}
549
547
}
You can’t perform that action at this time.
0 commit comments