Skip to content

Commit 4f9e367

Browse files
committed
Update version check in ClusterMetadataManifest
Signed-off-by: Shivansh Arora <[email protected]>
1 parent 65f7860 commit 4f9e367

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
@@ -355,7 +355,7 @@ public ClusterMetadataManifest(StreamInput in) throws IOException {
355355
this.indices = Collections.unmodifiableList(in.readList(UploadedIndexMetadata::new));
356356
this.previousClusterUUID = in.readString();
357357
this.clusterUUIDCommitted = in.readBoolean();
358-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
358+
if (in.getVersion().onOrAfter(Version.V_2_15_0)) {
359359
this.codecVersion = in.readInt();
360360
this.uploadedCoordinationMetadata = new UploadedMetadataAttribute(in);
361361
this.uploadedSettingsMetadata = new UploadedMetadataAttribute(in);
@@ -448,7 +448,7 @@ public void writeTo(StreamOutput out) throws IOException {
448448
out.writeCollection(indices);
449449
out.writeString(previousClusterUUID);
450450
out.writeBoolean(clusterUUIDCommitted);
451-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
451+
if (out.getVersion().onOrAfter(Version.V_2_15_0)) {
452452
out.writeInt(codecVersion);
453453
uploadedCoordinationMetadata.writeTo(out);
454454
uploadedSettingsMetadata.writeTo(out);

0 commit comments

Comments
 (0)