Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0-alpha2
-
None
-
Reviewed
Description
public synchronized void seek(long pos) throws IOException { checkNotClosed(); if (position == pos) { return; } else if (pos > position && pos < position + partRemaining) { AliyunOSSUtils.skipFully(wrappedStream, pos - position); position = pos; } else { reopen(pos); } }
In seek function, we need to update the partRemaining when the seeking position is located in downloaded part.