diff src/org/tmatesoft/hg/repo/HgBundle.java @ 606:5daa42067e7c

Avoid mmap files when only few bytes are to be read
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 07 May 2013 14:16:35 +0200
parents 243202f1bda5
children 6526d8adbc0f
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgBundle.java	Mon May 06 20:28:21 2013 +0200
+++ b/src/org/tmatesoft/hg/repo/HgBundle.java	Tue May 07 14:16:35 2013 +0200
@@ -60,7 +60,7 @@
 	}
 
 	private DataAccess getDataStream() throws IOException {
-		DataAccess da = accessProvider.createReader(bundleFile);
+		DataAccess da = accessProvider.createReader(bundleFile, false);
 		byte[] signature = new byte[6];
 		if (da.length() > 6) {
 			da.readBytes(signature, 0, 6);