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
|
||||
*/
|
||||
@Override
|
||||
public synchronized void seek(long desired) throws IOException {
|
||||
public void seek(long desired) throws IOException {
|
||||
((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
|
||||
clearing them. (Colin P. McCabe via yliu)
|
||||
|
||||
HDFS-7741. Remove unnecessary synchronized in FSDataInputStream and
|
||||
HdfsDataInputStream. (yliu)
|
||||
|
||||
Release 2.6.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -83,7 +83,7 @@ public class HdfsDataInputStream extends FSDataInputStream {
|
|||
/**
|
||||
* 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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue