diff src/org/tmatesoft/hg/internal/DirstateReader.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 5c68567b3645
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/DirstateReader.java	Mon May 06 20:28:21 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/DirstateReader.java	Tue May 07 14:16:35 2013 +0200
@@ -66,7 +66,7 @@
 		if (dirstateFile == null || !dirstateFile.exists()) {
 			return;
 		}
-		DataAccess da = repo.getDataAccess().createReader(dirstateFile);
+		DataAccess da = repo.getDataAccess().createReader(dirstateFile, false);
 		try {
 			if (da.isEmpty()) {
 				return;
@@ -142,7 +142,7 @@
 		if (dirstateFile == null || !dirstateFile.exists()) {
 			return new Pair<Nodeid,Nodeid>(NULL, NULL);
 		}
-		DataAccess da = internalRepo.getDataAccess().createReader(dirstateFile);
+		DataAccess da = internalRepo.getDataAccess().createReader(dirstateFile, false);
 		try {
 			if (da.isEmpty()) {
 				return new Pair<Nodeid,Nodeid>(NULL, NULL);