HADOOP-13723. AliyunOSSInputStream#read() should update read bytes stat correctly. Contributed by Mingliang Liu
This commit is contained in:
parent
ae51b11f78
commit
d9f73f1b7c
@ -123,7 +123,7 @@ public synchronized int read() throws IOException {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (statistics != null && byteRead >= 0) {
|
if (statistics != null && byteRead >= 0) {
|
||||||
statistics.incrementBytesRead(1);
|
statistics.incrementBytesRead(byteRead);
|
||||||
}
|
}
|
||||||
return byteRead;
|
return byteRead;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user