File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
main/java/org/elasticsearch/action/admin/indices/get
test/java/org/elasticsearch/action/admin/indices/get Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public GetIndexRequest(StreamInput in) throws IOException {
8181 features [i ] = Feature .fromId (in .readByte ());
8282 }
8383 humanReadable = in .readBoolean ();
84- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
84+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
8585 includeDefaults = in .readBoolean ();
8686 }
8787 }
@@ -155,7 +155,7 @@ public void writeTo(StreamOutput out) throws IOException {
155155 out .writeByte (feature .id );
156156 }
157157 out .writeBoolean (humanReadable );
158- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
158+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
159159 out .writeBoolean (includeDefaults );
160160 }
161161 }
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ public void readFrom(StreamInput in) throws IOException {
189189 settings = settingsMapBuilder .build ();
190190
191191 ImmutableOpenMap .Builder <String , Settings > defaultSettingsMapBuilder = ImmutableOpenMap .builder ();
192- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
192+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
193193 int defaultSettingsSize = in .readVInt ();
194194 for (int i = 0 ; i < defaultSettingsSize ; i ++) {
195195 defaultSettingsMapBuilder .put (in .readString (), Settings .readSettingsFromStream (in ));
@@ -224,7 +224,7 @@ public void writeTo(StreamOutput out) throws IOException {
224224 out .writeString (indexEntry .key );
225225 Settings .writeSettingsToStream (indexEntry .value , out );
226226 }
227- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
227+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
228228 out .writeVInt (defaultSettings .size ());
229229 for (ObjectObjectCursor <String , Settings > indexEntry : defaultSettings ) {
230230 out .writeString (indexEntry .key );
Original file line number Diff line number Diff line change 5252public class GetIndexResponseTests extends AbstractStreamableXContentTestCase <GetIndexResponse > {
5353
5454 /**
55- * The following byte response was generated from the v6.3.0 tag with the following code snippet
55+ * The following byte response was generated from the v6.3.0 tag
5656 */
5757 private static final String TEST_6_3_0_RESPONSE_BYTES =
5858 "AQhteV9pbmRleAEIbXlfaW5kZXgBA2RvYwNkb2OePID6KURGTACqVkrLTM1JiTdUsqpWKqksSFWyUiouKcrMS1eqrQUAAAD//" +
You can’t perform that action at this time.
0 commit comments