Skip to content

Commit c12ed69

Browse files
offset
1 parent f721efb commit c12ed69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ private void restoreFile(BlobStoreIndexShardSnapshot.FileInfo fileInfo, Store st
16921692
store.createVerifyingOutput(fileInfo.physicalName(), fileInfo.metadata(), IOContext.DEFAULT)) {
16931693
if (fileInfo.name().startsWith(VIRTUAL_DATA_BLOB_PREFIX)) {
16941694
final BytesRef hash = fileInfo.metadata().hash();
1695-
indexOutput.writeBytes(hash.bytes, 0, hash.length);
1695+
indexOutput.writeBytes(hash.bytes, hash.offset, hash.length);
16961696
recoveryState.getIndex().addRecoveredBytesToFile(fileInfo.physicalName(), hash.length);
16971697
} else {
16981698
try (InputStream stream = maybeRateLimit(new SlicedInputStream(fileInfo.numberOfParts()) {

0 commit comments

Comments
 (0)