소스 검색

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.
Lee Hinman 7 년 전
부모
커밋
a89073015d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      server/src/main/java/org/elasticsearch/action/support/IndicesOptions.java

+ 2 - 2
server/src/main/java/org/elasticsearch/action/support/IndicesOptions.java

@@ -239,7 +239,7 @@ public class IndicesOptions {
     }
 
     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(expandWildcards);
         } else {
@@ -248,7 +248,7 @@ public class IndicesOptions {
     }
 
     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));
         } else {
             byte id = in.readByte();