File tree 4 files changed +8
-8
lines changed
server/src/main/java/org/elasticsearch
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ public void readFrom(StreamInput in) throws IOException {
474
474
}
475
475
mappings .put (type , source );
476
476
}
477
- if (in .getVersion ().before (Version .V_7_0_0_alpha1 )) {
477
+ if (in .getVersion ().before (Version .V_6_5_0 )) {
478
478
// This used to be the size of custom metadata classes
479
479
int customSize = in .readVInt ();
480
480
assert customSize == 0 : "unexpected custom metadata when none is supported" ;
@@ -501,7 +501,7 @@ public void writeTo(StreamOutput out) throws IOException {
501
501
out .writeString (entry .getKey ());
502
502
out .writeString (entry .getValue ());
503
503
}
504
- if (out .getVersion ().before (Version .V_7_0_0_alpha1 )) {
504
+ if (out .getVersion ().before (Version .V_6_5_0 )) {
505
505
// Size of custom index metadata, which is removed
506
506
out .writeVInt (0 );
507
507
}
Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ public void readFrom(StreamInput in) throws IOException {
480
480
}
481
481
mappings .put (type , mappingSource );
482
482
}
483
- if (in .getVersion ().before (Version .V_7_0_0_alpha1 )) {
483
+ if (in .getVersion ().before (Version .V_6_5_0 )) {
484
484
// Used to be used for custom index metadata
485
485
int customSize = in .readVInt ();
486
486
assert customSize == 0 : "expected not to have any custom metadata" ;
@@ -513,7 +513,7 @@ public void writeTo(StreamOutput out) throws IOException {
513
513
out .writeString (entry .getKey ());
514
514
out .writeString (entry .getValue ());
515
515
}
516
- if (out .getVersion ().before (Version .V_7_0_0_alpha1 )) {
516
+ if (out .getVersion ().before (Version .V_6_5_0 )) {
517
517
out .writeVInt (0 );
518
518
}
519
519
out .writeVInt (aliases .size ());
Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ public static IndexMetaData readFrom(StreamInput in) throws IOException {
715
715
builder .putAlias (aliasMd );
716
716
}
717
717
int customSize = in .readVInt ();
718
- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
718
+ if (in .getVersion ().onOrAfter (Version .V_6_5_0 )) {
719
719
for (int i = 0 ; i < customSize ; i ++) {
720
720
String key = in .readString ();
721
721
DiffableStringMap custom = new DiffableStringMap (in );
@@ -761,7 +761,7 @@ public void writeTo(StreamOutput out) throws IOException {
761
761
for (ObjectCursor <AliasMetaData > cursor : aliases .values ()) {
762
762
cursor .value .writeTo (out );
763
763
}
764
- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
764
+ if (out .getVersion ().onOrAfter (Version .V_6_5_0 )) {
765
765
out .writeVInt (customData .size ());
766
766
for (final ObjectObjectCursor <String , DiffableStringMap > cursor : customData ) {
767
767
out .writeString (cursor .key );
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ public static IndexTemplateMetaData readFrom(StreamInput in) throws IOException
210
210
AliasMetaData aliasMd = new AliasMetaData (in );
211
211
builder .putAlias (aliasMd );
212
212
}
213
- if (in .getVersion ().before (Version .V_7_0_0_alpha1 )) {
213
+ if (in .getVersion ().before (Version .V_6_5_0 )) {
214
214
// Previously we allowed custom metadata
215
215
int customSize = in .readVInt ();
216
216
assert customSize == 0 : "expected no custom metadata" ;
@@ -247,7 +247,7 @@ public void writeTo(StreamOutput out) throws IOException {
247
247
for (ObjectCursor <AliasMetaData > cursor : aliases .values ()) {
248
248
cursor .value .writeTo (out );
249
249
}
250
- if (out .getVersion ().before (Version .V_7_0_0_alpha1 )) {
250
+ if (out .getVersion ().before (Version .V_6_5_0 )) {
251
251
out .writeVInt (0 );
252
252
}
253
253
if (out .getVersion ().onOrAfter (Version .V_5_0_0_beta1 )) {
You can’t perform that action at this time.
0 commit comments