mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 21:38:15 +00:00
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.
This commit is contained in:
parent
94ce645969
commit
a89073015d
@ -239,7 +239,7 @@ public class IndicesOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void writeIndicesOptions(StreamOutput out) throws IOException {
|
public void writeIndicesOptions(StreamOutput out) throws IOException {
|
||||||
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
|
||||||
out.writeEnumSet(options);
|
out.writeEnumSet(options);
|
||||||
out.writeEnumSet(expandWildcards);
|
out.writeEnumSet(expandWildcards);
|
||||||
} else {
|
} else {
|
||||||
@ -248,7 +248,7 @@ public class IndicesOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static IndicesOptions readIndicesOptions(StreamInput in) throws IOException {
|
public static IndicesOptions readIndicesOptions(StreamInput in) throws IOException {
|
||||||
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
|
||||||
return new IndicesOptions(in.readEnumSet(Option.class), in.readEnumSet(WildcardStates.class));
|
return new IndicesOptions(in.readEnumSet(Option.class), in.readEnumSet(WildcardStates.class));
|
||||||
} else {
|
} else {
|
||||||
byte id = in.readByte();
|
byte id = in.readByte();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user