Adjust version on final pipeline serialization
This commit adjusts the version final pipeline serialization after it was backported to the 7.5 branch.
This commit is contained in:
parent
4fd5fb5297
commit
69f570ea5f
|
@ -134,7 +134,7 @@ public class IndexRequest extends ReplicatedWriteRequest<IndexRequest> implement
|
|||
version = in.readLong();
|
||||
versionType = VersionType.fromValue(in.readByte());
|
||||
pipeline = in.readOptionalString();
|
||||
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
|
||||
if (in.getVersion().onOrAfter(Version.V_7_5_0)) {
|
||||
finalPipeline = in.readOptionalString();
|
||||
}
|
||||
if (in.getVersion().onOrAfter(Version.V_7_5_0)) {
|
||||
|
@ -713,7 +713,7 @@ public class IndexRequest extends ReplicatedWriteRequest<IndexRequest> implement
|
|||
out.writeLong(version);
|
||||
out.writeByte(versionType.getValue());
|
||||
out.writeOptionalString(pipeline);
|
||||
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
|
||||
if (out.getVersion().onOrAfter(Version.V_7_5_0)) {
|
||||
out.writeOptionalString(finalPipeline);
|
||||
}
|
||||
if (out.getVersion().onOrAfter(Version.V_7_5_0)) {
|
||||
|
|
Loading…
Reference in New Issue