ninja remove synchronized from MappedFileDataInput.readBytes
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/5cff788e Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/5cff788e Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/5cff788e Branch: refs/heads/trunk Commit: 5cff788efcc63ac738e16ca8cd912e1108d5c1be Parents: 29ff2d2 Author: Benedict Elliott Smith <bened...@apache.org> Authored: Mon Dec 22 15:39:29 2014 +0000 Committer: Benedict Elliott Smith <bened...@apache.org> Committed: Mon Dec 22 15:39:29 2014 +0000 ---------------------------------------------------------------------- src/java/org/apache/cassandra/io/util/MappedFileDataInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/5cff788e/src/java/org/apache/cassandra/io/util/MappedFileDataInput.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/io/util/MappedFileDataInput.java b/src/java/org/apache/cassandra/io/util/MappedFileDataInput.java index f397ddc..fb5b62e 100644 --- a/src/java/org/apache/cassandra/io/util/MappedFileDataInput.java +++ b/src/java/org/apache/cassandra/io/util/MappedFileDataInput.java @@ -128,7 +128,7 @@ public class MappedFileDataInput extends AbstractDataInput implements FileDataIn * @return buffer with portion of file content * @throws IOException on any fail of I/O operation */ - public synchronized ByteBuffer readBytes(int length) throws IOException + public ByteBuffer readBytes(int length) throws IOException { int remaining = buffer.remaining() - position; if (length > remaining)