Skip to content

Commit 7a4d320

Browse files
authored
Set version to 7.15 in BWC code (#76577)
1 parent 34ea976 commit 7a4d320

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/transforms/SettingsConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public SettingsConfig(final StreamInput in) throws IOException {
9494
} else {
9595
this.datesAsEpochMillis = DEFAULT_DATES_AS_EPOCH_MILLIS;
9696
}
97-
if (in.getVersion().onOrAfter(Version.CURRENT)) { // TODO: 7.15
97+
if (in.getVersion().onOrAfter(Version.V_7_15_0)) {
9898
this.interimResults = in.readOptionalInt();
9999
} else {
100100
this.interimResults = DEFAULT_INTERIM_RESULTS;
@@ -146,7 +146,7 @@ public void writeTo(StreamOutput out) throws IOException {
146146
if (out.getVersion().onOrAfter(Version.V_7_11_0)) {
147147
out.writeOptionalInt(datesAsEpochMillis);
148148
}
149-
if (out.getVersion().onOrAfter(Version.CURRENT)) { // TODO: 7.15
149+
if (out.getVersion().onOrAfter(Version.V_7_15_0)) {
150150
out.writeOptionalInt(interimResults);
151151
}
152152
}

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/transforms/TransformConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ private static TransformConfig applyRewriteForUpdate(Builder builder) {
556556
}
557557

558558
// 3. set interim_results to true for transforms < 7.15 to keep BWC
559-
if (builder.getVersion() != null && builder.getVersion().before(Version.CURRENT)) { // TODO: 7.15
559+
if (builder.getVersion() != null && builder.getVersion().before(Version.V_7_15_0)) {
560560
builder.setSettings(
561561
new SettingsConfig(
562562
builder.getSettings().getMaxPageSearchSize(),

0 commit comments

Comments
 (0)