Skip to content

Commit 7a98e31

Browse files
authored
Make VerifyingIndexInput public (#117518)
This way we can verify store files as we read them directly, without going through a store abstraction we may not have if we copy lucene files around.
1 parent a46547c commit 7a98e31

File tree

1 file changed

+2
-2
lines changed
  • server/src/main/java/org/elasticsearch/index/store

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/index/store/Store.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,14 +1217,14 @@ public static String digestToString(long digest) {
12171217
* mechanism that is used in some repository plugins (S3 for example). However, the checksum is only calculated on
12181218
* the first read. All consecutive reads of the same data are not used to calculate the checksum.
12191219
*/
1220-
static class VerifyingIndexInput extends ChecksumIndexInput {
1220+
public static class VerifyingIndexInput extends ChecksumIndexInput {
12211221
private final IndexInput input;
12221222
private final Checksum digest;
12231223
private final long checksumPosition;
12241224
private final byte[] checksum = new byte[8];
12251225
private long verifiedPosition = 0;
12261226

1227-
VerifyingIndexInput(IndexInput input) {
1227+
public VerifyingIndexInput(IndexInput input) {
12281228
this(input, new BufferedChecksum(new CRC32()));
12291229
}
12301230

0 commit comments

Comments
 (0)