cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject [4/9] git commit: ninja assert
Date Thu, 19 Jun 2014 16:33:55 GMT
ninja assert


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

Branch: refs/heads/trunk
Commit: 4f381a2a60c95bba9b3d7153aab8db504b3b7720
Parents: 3ff7a77
Author: Jake Luciani <jake@apache.org>
Authored: Thu Jun 19 12:18:58 2014 -0400
Committer: Jake Luciani <jake@apache.org>
Committed: Thu Jun 19 12:18:58 2014 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/RangeTombstoneList.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4f381a2a/src/java/org/apache/cassandra/db/RangeTombstoneList.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/RangeTombstoneList.java b/src/java/org/apache/cassandra/db/RangeTombstoneList.java
index 757a1d0..fd2e100 100644
--- a/src/java/org/apache/cassandra/db/RangeTombstoneList.java
+++ b/src/java/org/apache/cassandra/db/RangeTombstoneList.java
@@ -128,6 +128,8 @@ public class RangeTombstoneList implements Iterable<RangeTombstone>,
IMeasurable
 
         for (int i = 0; i < size; i++)
         {
+            assert !(starts[i] instanceof AbstractNativeCell || ends[i] instanceof AbstractNativeCell);
//this should never happen
+
             copy.starts[i] = starts[i].copy(null, allocator);
             copy.ends[i] = ends[i].copy(null, allocator);
         }


Mime
View raw message