Skip to content

Commit ee92253

Browse files
committed
Adapt BWC after backporting #50214
1 parent 804a504 commit ee92253

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

server/src/main/java/org/elasticsearch/gateway/TransportNodesListGatewayStartedShards.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public static class Request extends BaseNodesRequest<Request> {
169169
public Request(StreamInput in) throws IOException {
170170
super(in);
171171
shardId = new ShardId(in);
172-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
172+
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
173173
customDataPath = in.readString();
174174
} else {
175175
customDataPath = null;
@@ -200,7 +200,7 @@ public String getCustomDataPath() {
200200
public void writeTo(StreamOutput out) throws IOException {
201201
super.writeTo(out);
202202
shardId.writeTo(out);
203-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
203+
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
204204
out.writeString(customDataPath);
205205
}
206206
}
@@ -238,7 +238,7 @@ public static class NodeRequest extends BaseNodeRequest {
238238
public NodeRequest(StreamInput in) throws IOException {
239239
super(in);
240240
shardId = new ShardId(in);
241-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
241+
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
242242
customDataPath = in.readString();
243243
} else {
244244
customDataPath = null;
@@ -254,7 +254,7 @@ public NodeRequest(Request request) {
254254
public void writeTo(StreamOutput out) throws IOException {
255255
super.writeTo(out);
256256
shardId.writeTo(out);
257-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
257+
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
258258
assert customDataPath != null;
259259
out.writeString(customDataPath);
260260
}

server/src/main/java/org/elasticsearch/indices/store/TransportNodesListShardStoreMetaData.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public static class Request extends BaseNodesRequest<Request> {
268268
public Request(StreamInput in) throws IOException {
269269
super(in);
270270
shardId = new ShardId(in);
271-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
271+
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
272272
customDataPath = in.readString();
273273
} else {
274274
customDataPath = null;
@@ -299,7 +299,7 @@ public String getCustomDataPath() {
299299
public void writeTo(StreamOutput out) throws IOException {
300300
super.writeTo(out);
301301
shardId.writeTo(out);
302-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
302+
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
303303
out.writeString(customDataPath);
304304
}
305305
}
@@ -336,7 +336,7 @@ public static class NodeRequest extends BaseNodeRequest {
336336
public NodeRequest(StreamInput in) throws IOException {
337337
super(in);
338338
shardId = new ShardId(in);
339-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
339+
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
340340
customDataPath = in.readString();
341341
} else {
342342
customDataPath = null;
@@ -352,7 +352,7 @@ public NodeRequest(Request request) {
352352
public void writeTo(StreamOutput out) throws IOException {
353353
super.writeTo(out);
354354
shardId.writeTo(out);
355-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
355+
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
356356
assert customDataPath != null;
357357
out.writeString(customDataPath);
358358
}

0 commit comments

Comments
 (0)