diff --git a/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardRepository.java b/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardRepository.java index f2daf0cb34c..5a0bf58e3a6 100644 --- a/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardRepository.java +++ b/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardRepository.java @@ -439,7 +439,7 @@ public class BlobStoreIndexShardRepository extends AbstractComponent implements boolean snapshotRequired = false; BlobStoreIndexShardSnapshot.FileInfo fileInfo = snapshots.findPhysicalIndexFile(fileName); try { - // in 1.4.0 we added additional hashes for .si / segments_N files + // in 1.3.3 we added additional hashes for .si / segments_N files // to ensure we don't double the space in the repo since old snapshots // don't have this hash we try to read that hash from the blob store // in a bwc compatible way. @@ -703,7 +703,7 @@ public class BlobStoreIndexShardRepository extends AbstractComponent implements final Map fileInfos = new HashMap<>(); for (final FileInfo fileInfo : snapshot.indexFiles()) { try { - // in 1.4.0 we added additional hashes for .si / segments_N files + // in 1.3.3 we added additional hashes for .si / segments_N files // to ensure we don't double the space in the repo since old snapshots // don't have this hash we try to read that hash from the blob store // in a bwc compatible way. diff --git a/src/main/java/org/elasticsearch/index/store/StoreFileMetaData.java b/src/main/java/org/elasticsearch/index/store/StoreFileMetaData.java index ec47fad91a2..31d194315d7 100644 --- a/src/main/java/org/elasticsearch/index/store/StoreFileMetaData.java +++ b/src/main/java/org/elasticsearch/index/store/StoreFileMetaData.java @@ -124,7 +124,7 @@ public class StoreFileMetaData implements Streamable { String versionString = in.readOptionalString(); writtenBy = Lucene.parseVersionLenient(versionString, null); } - if (in.getVersion().onOrAfter(org.elasticsearch.Version.V_1_4_0_Beta1)) { + if (in.getVersion().onOrAfter(org.elasticsearch.Version.V_1_3_3)) { hash = in.readBytesRef(); } else { hash = new BytesRef(); @@ -139,7 +139,7 @@ public class StoreFileMetaData implements Streamable { if (out.getVersion().onOrAfter(org.elasticsearch.Version.V_1_3_0)) { out.writeOptionalString(writtenBy == null ? null : writtenBy.toString()); } - if (out.getVersion().onOrAfter(org.elasticsearch.Version.V_1_4_0_Beta1)) { + if (out.getVersion().onOrAfter(org.elasticsearch.Version.V_1_3_3)) { out.writeBytesRef(hash); } }