Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 e0ce1dd37 -> 0c92c5230
  refs/heads/trunk 1bcf0c7b6 -> 1af0db509


10529: Channel.size() is costly, mutually exclusive, and on the critical path


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0c92c523
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0c92c523
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0c92c523

Branch: refs/heads/cassandra-3.0
Commit: 0c92c52307f920908c119b8af84f741e7ef6afd7
Parents: e0ce1dd
Author: Stefania Alborghetti <stefania.alborghe...@datastax.com>
Authored: Thu Oct 15 10:34:58 2015 +0800
Committer: Benedict Elliott Smith <bened...@apache.org>
Committed: Fri Oct 16 15:59:14 2015 +0100

----------------------------------------------------------------------
 src/java/org/apache/cassandra/io/util/RandomAccessReader.java | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0c92c523/src/java/org/apache/cassandra/io/util/RandomAccessReader.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/util/RandomAccessReader.java 
b/src/java/org/apache/cassandra/io/util/RandomAccessReader.java
index 43589d0..b495bf0 100644
--- a/src/java/org/apache/cassandra/io/util/RandomAccessReader.java
+++ b/src/java/org/apache/cassandra/io/util/RandomAccessReader.java
@@ -430,9 +430,6 @@ public class RandomAccessReader extends 
RebufferingInputStream implements FileDa
 
         public Builder overrideLength(long overrideLength)
         {
-            if (overrideLength > channel.size())
-                throw new IllegalArgumentException("overrideLength cannot be 
more than the file size");
-
             this.overrideLength = overrideLength;
             return this;
         }

Reply via email to