File tree 2 files changed +4
-4
lines changed
server/src/main/java/org/elasticsearch/action/admin/indices/settings/get
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public GetSettingsRequest(StreamInput in) throws IOException {
71
71
indicesOptions = IndicesOptions .readIndicesOptions (in );
72
72
names = in .readStringArray ();
73
73
humanReadable = in .readBoolean ();
74
- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
74
+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
75
75
includeDefaults = in .readBoolean ();
76
76
}
77
77
}
@@ -83,7 +83,7 @@ public void writeTo(StreamOutput out) throws IOException {
83
83
indicesOptions .writeIndicesOptions (out );
84
84
out .writeStringArray (names );
85
85
out .writeBoolean (humanReadable );
86
- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
86
+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
87
87
out .writeBoolean (includeDefaults );
88
88
}
89
89
}
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public void readFrom(StreamInput in) throws IOException {
114
114
}
115
115
ImmutableOpenMap .Builder <String , Settings > defaultSettingsBuilder = ImmutableOpenMap .builder ();
116
116
117
- if (in .getVersion ().onOrAfter (org .elasticsearch .Version .V_7_0_0_alpha1 )) {
117
+ if (in .getVersion ().onOrAfter (org .elasticsearch .Version .V_6_4_0 )) {
118
118
int defaultSettingsSize = in .readVInt ();
119
119
for (int i = 0 ; i < defaultSettingsSize ; i ++) {
120
120
defaultSettingsBuilder .put (in .readString (), Settings .readSettingsFromStream (in ));
@@ -132,7 +132,7 @@ public void writeTo(StreamOutput out) throws IOException {
132
132
out .writeString (cursor .key );
133
133
Settings .writeSettingsToStream (cursor .value , out );
134
134
}
135
- if (out .getVersion ().onOrAfter (org .elasticsearch .Version .V_7_0_0_alpha1 )) {
135
+ if (out .getVersion ().onOrAfter (org .elasticsearch .Version .V_6_4_0 )) {
136
136
out .writeVInt (indexToDefaultSettings .size ());
137
137
for (ObjectObjectCursor <String , Settings > cursor : indexToDefaultSettings ) {
138
138
out .writeString (cursor .key );
You can’t perform that action at this time.
0 commit comments