Skip to content

Commit

Permalink
Update version for ClusterMetadataManifest after 2.15 backport (opens…
Browse files Browse the repository at this point in the history
…earch-project#14226)

Signed-off-by: Shivansh Arora <[email protected]>
  • Loading branch information
shiv0408 authored and wangdongyu.danny committed Aug 22, 2024
1 parent 31c0f95 commit ec13776
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ public ClusterMetadataManifest(StreamInput in) throws IOException {
this.indices = Collections.unmodifiableList(in.readList(UploadedIndexMetadata::new));
this.previousClusterUUID = in.readString();
this.clusterUUIDCommitted = in.readBoolean();
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
if (in.getVersion().onOrAfter(Version.V_2_15_0)) {
this.codecVersion = in.readInt();
this.uploadedCoordinationMetadata = new UploadedMetadataAttribute(in);
this.uploadedSettingsMetadata = new UploadedMetadataAttribute(in);
Expand Down Expand Up @@ -690,7 +690,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeCollection(indices);
out.writeString(previousClusterUUID);
out.writeBoolean(clusterUUIDCommitted);
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
if (out.getVersion().onOrAfter(Version.V_2_15_0)) {
out.writeInt(codecVersion);
uploadedCoordinationMetadata.writeTo(out);
uploadedSettingsMetadata.writeTo(out);
Expand Down

0 comments on commit ec13776

Please sign in to comment.