Skip to content

Commit e08c7c2

Browse files
authored
Change BWC version for VerifyRepositoryResponse (#30796)
The BWC version was previously at 7.0, because the 6.x backport had not yet landed. Now that it has landed, this commit replaces the BWC compat with the real version, 6.4.0. Relates #30762
1 parent 6909a05 commit e08c7c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/repositories/verify/VerifyRepositoryResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public VerifyRepositoryResponse(ClusterName clusterName, DiscoveryNode[] nodes)
140140
@Override
141141
public void readFrom(StreamInput in) throws IOException {
142142
super.readFrom(in);
143-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
143+
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
144144
this.nodes = in.readList(NodeView::new).stream().map(n -> n.convertToDiscoveryNode()).collect(Collectors.toList());
145145
} else {
146146
clusterName = new ClusterName(in);
@@ -151,7 +151,7 @@ public void readFrom(StreamInput in) throws IOException {
151151
@Override
152152
public void writeTo(StreamOutput out) throws IOException {
153153
super.writeTo(out);
154-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
154+
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
155155
out.writeList(getNodes());
156156
} else {
157157
clusterName.writeTo(out);

0 commit comments

Comments
 (0)