Skip to content

Commit

Permalink
Switched to v6.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sohaibiftikhar committed Jul 2, 2018
1 parent 6c0847b commit 3947a7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public GetIndexRequest(StreamInput in) throws IOException {
features[i] = Feature.fromId(in.readByte());
}
humanReadable = in.readBoolean();
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
includeDefaults = in.readBoolean();
}
}
Expand Down Expand Up @@ -155,7 +155,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeByte(feature.id);
}
out.writeBoolean(humanReadable);
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
out.writeBoolean(includeDefaults);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void readFrom(StreamInput in) throws IOException {
settings = settingsMapBuilder.build();

ImmutableOpenMap.Builder<String, Settings> defaultSettingsMapBuilder = ImmutableOpenMap.builder();
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
int defaultSettingsSize = in.readVInt();
for (int i = 0; i < defaultSettingsSize ; i++) {
defaultSettingsMapBuilder.put(in.readString(), Settings.readSettingsFromStream(in));
Expand Down Expand Up @@ -224,7 +224,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeString(indexEntry.key);
Settings.writeSettingsToStream(indexEntry.value, out);
}
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
out.writeVInt(defaultSettings.size());
for (ObjectObjectCursor<String, Settings> indexEntry : defaultSettings) {
out.writeString(indexEntry.key);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
public class GetIndexResponseTests extends AbstractStreamableXContentTestCase<GetIndexResponse> {

/**
* The following byte response was generated from the v6.3.0 tag with the following code snippet
* The following byte response was generated from the v6.3.0 tag
*/
private static final String TEST_6_3_0_RESPONSE_BYTES =
"AQhteV9pbmRleAEIbXlfaW5kZXgBA2RvYwNkb2OePID6KURGTACqVkrLTM1JiTdUsqpWKqksSFWyUiouKcrMS1eqrQUAAAD//" +
Expand Down

0 comments on commit 3947a7d

Please sign in to comment.