Skip to content

Commit

Permalink
Update BWC versions after backport of #78551
Browse files Browse the repository at this point in the history
  • Loading branch information
danhermann authored Oct 18, 2021
1 parent 75dbfec commit 906e163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
"Test pipeline versioned updates":
- skip:
version: " - 7.99.99"
reason: "re-enable in 7.16+ when backported"
version: " - 7.15.99"
reason: "added versioned updates in 7.16.0"

- do:
ingest.put_pipeline:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public PutPipelineRequest(StreamInput in) throws IOException {
id = in.readString();
source = in.readBytesReference();
xContentType = in.readEnum(XContentType.class);
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_16_0)) {
version = in.readOptionalInt();
} else {
version = null;
Expand Down Expand Up @@ -86,7 +86,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeString(id);
out.writeBytesReference(source);
XContentHelper.writeTo(out, xContentType);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_16_0)) {
out.writeOptionalInt(version);
}
}
Expand Down

0 comments on commit 906e163

Please sign in to comment.