Skip to content

Commit ab66c48

Browse files
committed
Adjust the serialization version for flattened field telemetry.
Follow-up to #48972, which was also backported to 7.6.
1 parent d82fafd commit ab66c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/flattened/FlattenedFeatureSetUsage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class FlattenedFeatureSetUsage extends XPackFeatureSet.Usage {
2121

2222
public FlattenedFeatureSetUsage(StreamInput input) throws IOException {
2323
super(input);
24-
this.fieldCount = input.getVersion().onOrAfter(Version.V_8_0_0) ? input.readInt() : 0;
24+
this.fieldCount = input.getVersion().onOrAfter(Version.V_7_6_0) ? input.readInt() : 0;
2525
}
2626

2727
public FlattenedFeatureSetUsage(boolean available, boolean enabled, int fieldCount) {
@@ -36,7 +36,7 @@ int fieldCount() {
3636
@Override
3737
public void writeTo(StreamOutput out) throws IOException {
3838
super.writeTo(out);
39-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
39+
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
4040
out.writeInt(fieldCount);
4141
}
4242
}

0 commit comments

Comments
 (0)