HADOOP-13723. AliyunOSSInputStream#read() should update read bytes stat correctly. Contributed by Mingliang Liu

This commit is contained in:
Mingliang Liu 2016-10-13 17:05:28 -07:00
parent ae51b11f78
commit d9f73f1b7c

View File

@ -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;
} }