Bump BWC version for settings serialization to 6.1.0
@@ -575,7 +575,7 @@ public final class Settings implements ToXContentFragment {
public static Settings readSettingsFromStream(StreamInput in) throws IOException {
Builder builder = new Builder();
int numberOfSettings = in.readVInt();
- if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
+ if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
for (int i = 0; i < numberOfSettings; i++) {
String key = in.readString();
Object value = in.readGenericValue();
@@ -600,7 +600,7 @@ public final class Settings implements ToXContentFragment {
public static void writeSettingsToStream(Settings settings, StreamOutput out) throws IOException {
// pull settings to exclude secure settings in size()
Set<Map.Entry<String, Object>> entries = settings.settings.entrySet();
- if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
+ if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
out.writeVInt(entries.size());
for (Map.Entry<String, Object> entry : entries) {
out.writeString(entry.getKey());
