cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1080283 - /cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java
Date Thu, 10 Mar 2011 17:11:24 GMT
Author: eevans
Date: Thu Mar 10 17:11:24 2011
New Revision: 1080283

URL: http://svn.apache.org/viewvc?rev=1080283&view=rev
Log:
empty term no longer makes sense for TimeUUID

Patch by eevans for CASSANDRA-2027

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java?rev=1080283&r1=1080282&r2=1080283&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java Thu Mar 10
17:11:24 2011
@@ -139,7 +139,7 @@ public class TimeUUIDType extends Abstra
             if (uuid.version() != 1)
                 throw new MarshalException("TimeUUID supports only version 1 UUIDs");
         }
-        else if (source.equals("") || source.toLowerCase().equals("now"))
+        else if (source.toLowerCase().equals("now"))
         {
             idBytes = ByteBuffer.wrap(UUIDGen.decompose(UUIDGen.makeType1UUIDFromHost(FBUtilities.getLocalAddress())));
         }



Mime
View raw message