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:
Masaya Suzuki 2019-06-15 13:53:27 -07:00
parent e837bdd0fa
commit 46678b303c
1 changed files with 1 additions and 2 deletions

View File

@ -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) {