cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject [1/2] git commit: switch shuffle's insert of a token to using new blob syntax patch by dbrosius reviewed by ayeschenko for CASSANDRA-5465
Date Sat, 13 Apr 2013 21:30:35 GMT
Updated Branches:
  refs/heads/trunk ab94f2892 -> e269cf116


switch shuffle's insert of a token to using new blob syntax
patch by dbrosius reviewed by ayeschenko for CASSANDRA-5465


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

Branch: refs/heads/trunk
Commit: a25ac14e0d245f648e97f888ee4b64acc50c76d1
Parents: 260dc75
Author: Dave Brosius <dbrosius@apache.org>
Authored: Sat Apr 13 17:24:33 2013 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Sat Apr 13 17:24:33 2013 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/tools/Shuffle.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a25ac14e/src/java/org/apache/cassandra/tools/Shuffle.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/Shuffle.java b/src/java/org/apache/cassandra/tools/Shuffle.java
index 793d2ee..3c8dea0 100644
--- a/src/java/org/apache/cassandra/tools/Shuffle.java
+++ b/src/java/org/apache/cassandra/tools/Shuffle.java
@@ -580,7 +580,7 @@ public class Shuffle extends AbstractJmxClient
             Token<?> token = partitioner.getTokenFactory().fromString(tokenStr);
             String hexToken = ByteBufferUtil.bytesToHex(partitioner.getTokenFactory().toByteArray(token));
             query.append("INSERT INTO system.range_xfers (token_bytes, requested_at) ")
-                 .append("VALUES ('").append(hexToken).append("', 'now');").append("\n");
+                 .append("VALUES (").append("0x").append(hexToken).append(", 'now');").append("\n");
         }
 
         query.append("APPLY BATCH").append("\n");


Mime
View raw message