@@ -693,7 +693,7 @@ public Diff<Custom> readDiff(StreamInput in, String key) throws IOException {
693
693
});
694
694
inSyncAllocationIds = DiffableUtils .readImmutableOpenIntMapDiff (in , DiffableUtils .getVIntKeySerializer (),
695
695
DiffableUtils .StringSetValueSerializer .getInstance ());
696
- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
696
+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
697
697
rolloverInfos = DiffableUtils .readImmutableOpenMapDiff (in , DiffableUtils .getStringKeySerializer (), RolloverInfo ::new ,
698
698
RolloverInfo ::readDiffFrom );
699
699
} else {
@@ -714,7 +714,7 @@ public void writeTo(StreamOutput out) throws IOException {
714
714
aliases .writeTo (out );
715
715
customs .writeTo (out );
716
716
inSyncAllocationIds .writeTo (out );
717
- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
717
+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
718
718
rolloverInfos .writeTo (out );
719
719
}
720
720
}
@@ -765,7 +765,7 @@ public static IndexMetaData readFrom(StreamInput in) throws IOException {
765
765
Set <String > allocationIds = DiffableUtils .StringSetValueSerializer .getInstance ().read (in , key );
766
766
builder .putInSyncAllocationIds (key , allocationIds );
767
767
}
768
- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
768
+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
769
769
int rolloverAliasesSize = in .readVInt ();
770
770
for (int i = 0 ; i < rolloverAliasesSize ; i ++) {
771
771
builder .putRolloverInfo (new RolloverInfo (in ));
@@ -800,7 +800,7 @@ public void writeTo(StreamOutput out) throws IOException {
800
800
out .writeVInt (cursor .key );
801
801
DiffableUtils .StringSetValueSerializer .getInstance ().write (cursor .value , out );
802
802
}
803
- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
803
+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
804
804
out .writeVInt (rolloverInfos .size ());
805
805
for (ObjectCursor <RolloverInfo > cursor : rolloverInfos .values ()) {
806
806
cursor .value .writeTo (out );
0 commit comments