summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasaya Suzuki <masayasuzuki@google.com>2019-06-15 13:53:27 -0700
committerMasaya Suzuki <masayasuzuki@google.com>2019-08-12 10:34:24 -0700
commit46678b303c6625c039109b1a06c0df0ec82dd290 (patch)
tree2386583bc5a78aa51fbebb29c9d046a819d6baa3
parente837bdd0face058ad4f4f7ebdb4802514719bb94 (diff)
downloadjgit-46678b303c6625c039109b1a06c0df0ec82dd290.tar.gz
jgit-46678b303c6625c039109b1a06c0df0ec82dd290.zip
dfs: Read at the aligned position
The position is anyway aligned in BlockBasedFile, so this is no-op. Change-Id: Iba037e0ecff339393dd2c03fc5ae4fe858031e4f Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java
index fae302282f..cd5ada64aa 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java
@@ -412,8 +412,7 @@ public final class DfsBlockCache {
getStat(statMiss, key).incrementAndGet();
boolean credit = true;
try {
- v = file.readOneBlock(requestedPosition, ctx,
- fileChannel.get());
+ v = file.readOneBlock(position, ctx, fileChannel.get());
credit = false;
} finally {
if (credit) {