Skip to content

Commit

Permalink
naming TransportVersions.NEED_SHARDS_STATS_ADDED -> TransportVersions…
Browse files Browse the repository at this point in the history
….INCLUDE_SHARDS_STATS_ADDED
  • Loading branch information
NEUpanning committed Oct 13, 2023
1 parent e77db60 commit 9d20eda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static TransportVersion def(int id) {
public static final TransportVersion UNIVERSAL_PROFILING_LICENSE_ADDED = def(8_514_00_0);
public static final TransportVersion ELSER_SERVICE_MODEL_VERSION_ADDED = def(8_515_00_0);
public static final TransportVersion NODE_STATS_HTTP_ROUTE_STATS_ADDED = def(8_516_00_0);
public static final TransportVersion NEED_SHARDS_STATS_ADDED = def(8_517_00_0);
public static final TransportVersion INCLUDE_SHARDS_STATS_ADDED = def(8_517_00_0);
/*
* STOP! READ THIS FIRST! No, really,
* ____ _____ ___ ____ _ ____ _____ _ ____ _____ _ _ ___ ____ _____ ___ ____ ____ _____ _
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public NodesStatsRequest(StreamInput in) throws IOException {
indices = new CommonStatsFlags(in);
requestedMetrics.clear();
requestedMetrics.addAll(in.readStringCollectionAsList());
if (in.getTransportVersion().onOrAfter(TransportVersions.NEED_SHARDS_STATS_ADDED)) {
if (in.getTransportVersion().onOrAfter(TransportVersions.INCLUDE_SHARDS_STATS_ADDED)) {
includeShardsStats = in.readBoolean();
} else {
includeShardsStats = true;
Expand Down Expand Up @@ -189,7 +189,7 @@ public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
indices.writeTo(out);
out.writeStringCollection(requestedMetrics);
if (out.getTransportVersion().onOrAfter(TransportVersions.NEED_SHARDS_STATS_ADDED)) {
if (out.getTransportVersion().onOrAfter(TransportVersions.INCLUDE_SHARDS_STATS_ADDED)) {
out.writeBoolean(includeShardsStats);
}
}
Expand Down

0 comments on commit 9d20eda

Please sign in to comment.