cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ble...@apache.org
Subject [1/5] cassandra git commit: Uncomment mistakenly commented sanity check
Date Wed, 21 Oct 2015 08:24:20 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk f8fa3a427 -> 2af041bdf


Uncomment mistakenly commented sanity check


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

Branch: refs/heads/trunk
Commit: 79097d75cd320eda9cf29cc56e254687b4a0162e
Parents: 615945d
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Wed Oct 21 10:01:34 2015 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Wed Oct 21 10:01:34 2015 +0200

----------------------------------------------------------------------
 .../apache/cassandra/io/sstable/format/big/BigTableWriter.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/79097d75/src/java/org/apache/cassandra/io/sstable/format/big/BigTableWriter.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/sstable/format/big/BigTableWriter.java b/src/java/org/apache/cassandra/io/sstable/format/big/BigTableWriter.java
index d2500b4..fdc1c64 100644
--- a/src/java/org/apache/cassandra/io/sstable/format/big/BigTableWriter.java
+++ b/src/java/org/apache/cassandra/io/sstable/format/big/BigTableWriter.java
@@ -101,8 +101,8 @@ public class BigTableWriter extends SSTableWriter
     private long beforeAppend(DecoratedKey decoratedKey)
     {
         assert decoratedKey != null : "Keys must not be null"; // empty keys ARE allowed
b/c of indexed column values
-        //if (lastWrittenKey != null && lastWrittenKey.compareTo(decoratedKey) >=
0)
-        //    throw new RuntimeException("Last written key " + lastWrittenKey + " >= current
key " + decoratedKey + " writing into " + getFilename());
+        if (lastWrittenKey != null && lastWrittenKey.compareTo(decoratedKey) >=
0)
+            throw new RuntimeException("Last written key " + lastWrittenKey + " >= current
key " + decoratedKey + " writing into " + getFilename());
         return (lastWrittenKey == null) ? 0 : dataFile.position();
     }
 


Mime
View raw message