Skip to content

Commit 31c5958

Browse files
dakroneywelsch
authored andcommitted
Adjust serialization version in IndicesOptions
The PR for the new format of serialization was backported, so this needs to be adjusted since it can now speak to 6.4 nodes in the new way.
1 parent c3b7caa commit 31c5958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/action/support/IndicesOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public boolean ignoreAliases() {
239239
}
240240

241241
public void writeIndicesOptions(StreamOutput out) throws IOException {
242-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
242+
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
243243
out.writeEnumSet(options);
244244
out.writeEnumSet(expandWildcards);
245245
} else {
@@ -248,7 +248,7 @@ public void writeIndicesOptions(StreamOutput out) throws IOException {
248248
}
249249

250250
public static IndicesOptions readIndicesOptions(StreamInput in) throws IOException {
251-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
251+
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
252252
return new IndicesOptions(in.readEnumSet(Option.class), in.readEnumSet(WildcardStates.class));
253253
} else {
254254
byte id = in.readByte();

0 commit comments

Comments
 (0)