Skip to content

Commit 7c50847

Browse files
shiv0408harshavamsi
authored andcommitted
Update version for ClusterMetadataManifest after 2.15 backport (opensearch-project#14226)
Signed-off-by: Shivansh Arora <[email protected]>
1 parent 0ec6f63 commit 7c50847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/gateway/remote/ClusterMetadataManifest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ public ClusterMetadataManifest(StreamInput in) throws IOException {
516516
this.indices = Collections.unmodifiableList(in.readList(UploadedIndexMetadata::new));
517517
this.previousClusterUUID = in.readString();
518518
this.clusterUUIDCommitted = in.readBoolean();
519-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
519+
if (in.getVersion().onOrAfter(Version.V_2_15_0)) {
520520
this.codecVersion = in.readInt();
521521
this.uploadedCoordinationMetadata = new UploadedMetadataAttribute(in);
522522
this.uploadedSettingsMetadata = new UploadedMetadataAttribute(in);
@@ -690,7 +690,7 @@ public void writeTo(StreamOutput out) throws IOException {
690690
out.writeCollection(indices);
691691
out.writeString(previousClusterUUID);
692692
out.writeBoolean(clusterUUIDCommitted);
693-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
693+
if (out.getVersion().onOrAfter(Version.V_2_15_0)) {
694694
out.writeInt(codecVersion);
695695
uploadedCoordinationMetadata.writeTo(out);
696696
uploadedSettingsMetadata.writeTo(out);

0 commit comments

Comments
 (0)