Skip to content

Commit 95cebce

Browse files
authored
Set version to 7.15 in BWC code (#76577) (#76581)
1 parent 0f61ef4 commit 95cebce

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
@@ -562,7 +562,7 @@ private static TransformConfig applyRewriteForUpdate(Builder builder) {
562562
}
563563

564564
// 3. set interim_results to true for transforms < 7.15 to keep BWC
565-
if (builder.getVersion() != null && builder.getVersion().before(Version.CURRENT)) { // TODO: 7.15
565+
if (builder.getVersion() != null && builder.getVersion().before(Version.V_7_15_0)) {
566566
builder.setSettings(
567567
new SettingsConfig(
568568
builder.getSettings().getMaxPageSearchSize(),

0 commit comments

Comments
 (0)