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>
This commit is contained in:
parent
e837bdd0fa
commit
46678b303c
|
@ -412,8 +412,7 @@ DfsBlock getOrLoad(BlockBasedFile file, long position, DfsReader ctx,
|
||||||
getStat(statMiss, key).incrementAndGet();
|
getStat(statMiss, key).incrementAndGet();
|
||||||
boolean credit = true;
|
boolean credit = true;
|
||||||
try {
|
try {
|
||||||
v = file.readOneBlock(requestedPosition, ctx,
|
v = file.readOneBlock(position, ctx, fileChannel.get());
|
||||||
fileChannel.get());
|
|
||||||
credit = false;
|
credit = false;
|
||||||
} finally {
|
} finally {
|
||||||
if (credit) {
|
if (credit) {
|
||||||
|
|
Loading…
Reference in New Issue