Call verify on index input after copying

This commit is contained in:
Simon Willnauer 2015-10-01 16:48:37 +02:00
parent bd66c4bb0d
commit d9b68a7674
1 changed files with 1 additions and 0 deletions

View File

@ -674,6 +674,7 @@ public class RecoverySourceHandler {
try (final OutputStream outputStream = outputStreamFactory.apply(md);
final IndexInput indexInput = store.directory().openInput(md.name(), IOContext.READONCE)) {
Streams.copy(new InputStreamIndexInput(indexInput, md.length()), outputStream);
Store.verify(indexInput);
}
return null;
});