Skip to content

Commit

Permalink
Updating supported version after backporting the feature (#76794)
Browse files Browse the repository at this point in the history
Updating the version where the total_shards_per_node parameter is supported, after backporting the feature to 7.16.
Relates to #76775 #44070
  • Loading branch information
masseyke authored Aug 23, 2021
1 parent b8c356f commit 83ca8b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public AllocateAction(Integer numberOfReplicas, Integer totalShardsPerNode, Map<

@SuppressWarnings("unchecked")
public AllocateAction(StreamInput in) throws IOException {
this(in.readOptionalVInt(), in.getVersion().onOrAfter(Version.V_8_0_0) ? in.readOptionalInt() : null,
this(in.readOptionalVInt(), in.getVersion().onOrAfter(Version.V_7_16_0) ? in.readOptionalInt() : null,
(Map<String, String>) in.readGenericValue(), (Map<String, String>) in.readGenericValue(),
(Map<String, String>) in.readGenericValue());
}
Expand Down Expand Up @@ -121,7 +121,7 @@ public Map<String, String> getRequire() {
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeOptionalVInt(numberOfReplicas);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_16_0)) {
out.writeOptionalInt(totalShardsPerNode);
}
out.writeGenericValue(include);
Expand Down

0 comments on commit 83ca8b9

Please sign in to comment.