cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject git commit: Ninja: use v1 (time) instead of v4 (random) UUID for the batchlog
Date Mon, 28 Oct 2013 17:23:27 GMT
Updated Branches:
  refs/heads/cassandra-2.0 27da625fb -> b5d563ec3


Ninja: use v1 (time) instead of v4 (random) UUID for the batchlog


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

Branch: refs/heads/cassandra-2.0
Commit: b5d563ec3c7d569e626119bd5900026c07f247b6
Parents: 27da625
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Mon Oct 28 20:21:24 2013 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Mon Oct 28 20:21:24 2013 +0300

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/StorageProxy.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b5d563ec/src/java/org/apache/cassandra/service/StorageProxy.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/StorageProxy.java b/src/java/org/apache/cassandra/service/StorageProxy.java
index 52a2a47..6e6d98c 100644
--- a/src/java/org/apache/cassandra/service/StorageProxy.java
+++ b/src/java/org/apache/cassandra/service/StorageProxy.java
@@ -610,7 +610,7 @@ public class StorageProxy implements StorageProxyMBean
 
             // write to the batchlog
             Collection<InetAddress> batchlogEndpoints = getBatchlogEndpoints(localDataCenter,
consistency_level);
-            UUID batchUUID = UUID.randomUUID();
+            UUID batchUUID = UUIDGen.getTimeUUID();
             syncWriteToBatchlog(mutations, batchlogEndpoints, batchUUID);
 
             // now actually perform the writes and wait for them to complete


Mime
View raw message