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();
|
||||
boolean credit = true;
|
||||
try {
|
||||
v = file.readOneBlock(requestedPosition, ctx,
|
||||
fileChannel.get());
|
||||
v = file.readOneBlock(position, ctx, fileChannel.get());
|
||||
credit = false;
|
||||
} finally {
|
||||
if (credit) {
|
||||
|
|
Loading…
Reference in New Issue