You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by be...@apache.org on 2014/12/22 16:40:02 UTC

[2/3] cassandra git commit: ninja remove synchronized from MappedFileDataInput.readBytes

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 <be...@apache.org>
Authored: Mon Dec 22 15:39:29 2014 +0000
Committer: Benedict Elliott Smith <be...@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)