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:
parent
eb38979c80
commit
9f86836794
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue