Skip to content

Commit 3947a7d

Browse files
Switched to v6.4.0
1 parent 6c0847b commit 3947a7d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

server/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

server/src/test/java/org/elasticsearch/action/admin/indices/get/GetIndexResponseTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
public 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//" +

0 commit comments

Comments
 (0)