Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public SettingsConfig(final StreamInput in) throws IOException {
} else {
this.datesAsEpochMillis = DEFAULT_DATES_AS_EPOCH_MILLIS;
}
if (in.getVersion().onOrAfter(Version.CURRENT)) { // TODO: 7.15
if (in.getVersion().onOrAfter(Version.V_7_15_0)) {
this.interimResults = in.readOptionalInt();
} else {
this.interimResults = DEFAULT_INTERIM_RESULTS;
Expand Down Expand Up @@ -146,7 +146,7 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_7_11_0)) {
out.writeOptionalInt(datesAsEpochMillis);
}
if (out.getVersion().onOrAfter(Version.CURRENT)) { // TODO: 7.15
if (out.getVersion().onOrAfter(Version.V_7_15_0)) {
out.writeOptionalInt(interimResults);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ private static TransformConfig applyRewriteForUpdate(Builder builder) {
}

// 3. set interim_results to true for transforms < 7.15 to keep BWC
if (builder.getVersion() != null && builder.getVersion().before(Version.CURRENT)) { // TODO: 7.15
if (builder.getVersion() != null && builder.getVersion().before(Version.V_7_15_0)) {
builder.setSettings(
new SettingsConfig(
builder.getSettings().getMaxPageSearchSize(),
Expand Down