cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1037982 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ExpiringColumn.java
Date Tue, 23 Nov 2010 02:56:48 GMT
Author: jbellis
Date: Tue Nov 23 02:56:48 2010
New Revision: 1037982

URL: http://svn.apache.org/viewvc?rev=1037982&view=rev
Log:
show ttl / let on assertion failure

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ExpiringColumn.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ExpiringColumn.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ExpiringColumn.java?rev=1037982&r1=1037981&r2=1037982&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ExpiringColumn.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ExpiringColumn.java
Tue Nov 23 02:56:48 2010
@@ -51,8 +51,8 @@ public class ExpiringColumn extends Colu
     public ExpiringColumn(ByteBuffer name, ByteBuffer value, long timestamp, int timeToLive,
int localExpirationTime)
     {
         super(name, value, timestamp);
-        assert timeToLive > 0;
-        assert localExpirationTime > 0;
+        assert timeToLive > 0 : timeToLive;
+        assert localExpirationTime > 0 : localExpirationTime;
         this.timeToLive = timeToLive;
         this.localExpirationTime = localExpirationTime;
     }



Mime
View raw message