Skip to content

Commit

Permalink
test: adding optimizedFlags on main - 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranshu-S committed Jul 11, 2024
1 parent 81547bb commit 5a78387
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ public CommonStatsFlags(StreamInput in) throws IOException {
includeUnloadedSegments = in.readBoolean();
includeAllShardIndexingPressureTrackers = in.readBoolean();
includeOnlyTopIndexingPressureMetrics = in.readBoolean();
if (in.getVersion().onOrAfter(Version.V_2_16_0)) {
optimizeNodeIndicesStatsOnLevel = in.readOptionalBoolean();
}
if (in.getVersion().onOrAfter(Version.V_2_14_0)) {
includeCaches = in.readEnumSet(CacheType.class);
levels = in.readStringArray();
}
if (in.getVersion().onOrAfter(Version.V_2_16_0)) {
optimizeNodeIndicesStatsOnLevel = in.readOptionalBoolean();
}
}

@Override
Expand All @@ -125,13 +125,13 @@ 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)) {
out.writeOptionalBoolean(optimizeNodeIndicesStatsOnLevel);
}
if (out.getVersion().onOrAfter(Version.V_2_14_0)) {
out.writeEnumSet(includeCaches);
out.writeStringArrayNullable(levels);
}
if (out.getVersion().onOrAfter(Version.V_2_16_0)) {
out.writeOptionalBoolean(optimizeNodeIndicesStatsOnLevel);
}
}

/**
Expand Down

0 comments on commit 5a78387

Please sign in to comment.