HADOOP-10440. HarFsInputStream.read(byte[]) updates position incorrectly. Contributed by guodongdong

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1581964 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tsz-wo Sze 2014-03-26 17:48:04 +00:00
parent a206399afd
commit 3d207f1db2
2 changed files with 3 additions and 3 deletions

View File

@ -454,6 +454,9 @@ Release 2.4.0 - UNRELEASED
HADOOP-10425. LocalFileSystem.getContentSummary should not count crc files.
(szetszwo)
HADOOP-10440. HarFsInputStream.read(byte[]) updates position incorrectly.
(guodongdong via szetszwo)
BREAKDOWN OF HADOOP-10184 SUBTASKS AND RELATED JIRAS
HADOOP-10185. FileSystem API for ACLs. (cnauroth)

View File

@ -963,9 +963,6 @@ public synchronized int read() throws IOException {
@Override
public synchronized int read(byte[] b) throws IOException {
final int ret = read(b, 0, b.length);
if (ret > 0) {
position += ret;
}
return ret;
}