|
|
@@ -114,7 +114,7 @@ public class GetSettingsResponse extends ActionResponse implements ToXContentObj
|
|
|
}
|
|
|
ImmutableOpenMap.Builder<String, Settings> defaultSettingsBuilder = ImmutableOpenMap.builder();
|
|
|
|
|
|
- if (in.getVersion().onOrAfter(org.elasticsearch.Version.V_7_0_0_alpha1)) {
|
|
|
+ if (in.getVersion().onOrAfter(org.elasticsearch.Version.V_6_4_0)) {
|
|
|
int defaultSettingsSize = in.readVInt();
|
|
|
for (int i = 0; i < defaultSettingsSize ; i++) {
|
|
|
defaultSettingsBuilder.put(in.readString(), Settings.readSettingsFromStream(in));
|
|
|
@@ -132,7 +132,7 @@ public class GetSettingsResponse extends ActionResponse implements ToXContentObj
|
|
|
out.writeString(cursor.key);
|
|
|
Settings.writeSettingsToStream(cursor.value, out);
|
|
|
}
|
|
|
- if (out.getVersion().onOrAfter(org.elasticsearch.Version.V_7_0_0_alpha1)) {
|
|
|
+ if (out.getVersion().onOrAfter(org.elasticsearch.Version.V_6_4_0)) {
|
|
|
out.writeVInt(indexToDefaultSettings.size());
|
|
|
for (ObjectObjectCursor<String, Settings> cursor : indexToDefaultSettings) {
|
|
|
out.writeString(cursor.key);
|