NIFI-1285: Used a BufferedInputStream when swapping in data

Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
Mark Payne 2015-12-18 11:44:37 -05:00 committed by joewitt
parent 9ca0f95d06
commit 1869b44682
1 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,8 @@ public class FileSystemSwapManager implements FlowFileSwapManager {
final List<FlowFileRecord> swappedFlowFiles;
try (final InputStream fis = new FileInputStream(swapFile);
final DataInputStream in = new DataInputStream(fis)) {
final InputStream bis = new BufferedInputStream(fis);
final DataInputStream in = new DataInputStream(bis)) {
swappedFlowFiles = deserializeFlowFiles(in, swapLocation, flowFileQueue, claimManager);
}