Skip to content

Commit

Permalink
test: adding optimizedFlags on main - 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranshu-S committed Jul 11, 2024
1 parent 1f65f85 commit 627b15a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public CommonStatsFlags(StreamInput in) throws IOException {
includeUnloadedSegments = in.readBoolean();
includeAllShardIndexingPressureTrackers = in.readBoolean();
includeOnlyTopIndexingPressureMetrics = in.readBoolean();
if (in.getVersion().onOrAfter(Version.V_2_16_0)) {
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
optimizeNodeIndicesStatsOnLevel = in.readOptionalBoolean();
logger.info("In.Version - " + in.getVersion());
logger.info("In.Flag - " + optimizeNodeIndicesStatsOnLevel);
Expand Down Expand Up @@ -131,7 +131,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeBoolean(includeUnloadedSegments);
out.writeBoolean(includeAllShardIndexingPressureTrackers);
out.writeBoolean(includeOnlyTopIndexingPressureMetrics);
if (out.getVersion().onOrAfter(Version.V_2_16_0)) {
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
out.writeOptionalBoolean(optimizeNodeIndicesStatsOnLevel);
logger.info("Out.Version - " + out.getVersion());
logger.info("Out.Flag - " + optimizeNodeIndicesStatsOnLevel);
Expand Down

0 comments on commit 627b15a

Please sign in to comment.