HBASE-10631 Avoid extra seek on FileLink open

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1572889 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
mbertozzi 2014-02-28 09:13:58 +00:00
parent eb38979c80
commit 9f86836794
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ public class FileLink {
if (path.equals(currentPath)) continue;
try {
in = fs.open(path, bufferSize);
in.seek(pos);
if (pos != 0) in.seek(pos);
assert(in.getPos() == pos) : "Link unable to seek to the right position=" + pos;
if (LOG.isTraceEnabled()) {
if (currentPath != null) {