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
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class AliyunOSSInputStream extends FSInputStream {
}
if (statistics != null && byteRead >= 0) {
statistics.incrementBytesRead(1);
statistics.incrementBytesRead(byteRead);
}
return byteRead;
}