Skip to content

Commit

Permalink
Update x-pack/plugin/searchable-snapshots/src/main/java/org/elasticse…
Browse files Browse the repository at this point in the history
…arch/xpack/searchablesnapshots/store/input/FrozenIndexInput.java

Co-authored-by: Tanguy Leroux <tlrx.dev@gmail.com>
  • Loading branch information
original-brownbear and tlrx authored Jul 18, 2023
1 parent 75de15b commit 9203f08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private FrozenIndexInput(
protected void readWithoutBlobCache(ByteBuffer b) throws Exception {
final long position = getAbsolutePosition();
final int length = b.remaining();
if (cacheFile.tryRead(b, getAbsolutePosition())) {
if (cacheFile.tryRead(b, position)) {
stats.addCachedBytesRead(length);
return;
}
Expand Down

0 comments on commit 9203f08

Please sign in to comment.