HDFS-7741. Remove unnecessary synchronized in FSDataInputStream and HdfsDataInputStream. (yliu)
This commit is contained in:
parent
9d91069118
commit
7b10ef0c3b
|
@ -58,7 +58,7 @@ public class FSDataInputStream extends DataInputStream
|
||||||
* @param desired offset to seek to
|
* @param desired offset to seek to
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public synchronized void seek(long desired) throws IOException {
|
public void seek(long desired) throws IOException {
|
||||||
((Seekable)in).seek(desired);
|
((Seekable)in).seek(desired);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -851,6 +851,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
HDFS-7698. Fix locking on HDFS read statistics and add a method for
|
HDFS-7698. Fix locking on HDFS read statistics and add a method for
|
||||||
clearing them. (Colin P. McCabe via yliu)
|
clearing them. (Colin P. McCabe via yliu)
|
||||||
|
|
||||||
|
HDFS-7741. Remove unnecessary synchronized in FSDataInputStream and
|
||||||
|
HdfsDataInputStream. (yliu)
|
||||||
|
|
||||||
Release 2.6.1 - UNRELEASED
|
Release 2.6.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class HdfsDataInputStream extends FSDataInputStream {
|
||||||
/**
|
/**
|
||||||
* Get the collection of blocks that has already been located.
|
* Get the collection of blocks that has already been located.
|
||||||
*/
|
*/
|
||||||
public synchronized List<LocatedBlock> getAllBlocks() throws IOException {
|
public List<LocatedBlock> getAllBlocks() throws IOException {
|
||||||
return getDFSInputStream().getAllBlocks();
|
return getDFSInputStream().getAllBlocks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue