cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1061475 - /cassandra/branches/cassandra-0.7/contrib/stress/src/org/apache/cassandra/contrib/stress/tests/IndexedRangeSlicer.java
Date Thu, 20 Jan 2011 19:36:21 GMT
Author: jbellis
Date: Thu Jan 20 19:36:21 2011
New Revision: 1061475

URL: http://svn.apache.org/viewvc?rev=1061475&view=rev
Log:
fix stress.java for FBU/BBU refactor

Modified:
    cassandra/branches/cassandra-0.7/contrib/stress/src/org/apache/cassandra/contrib/stress/tests/IndexedRangeSlicer.java

Modified: cassandra/branches/cassandra-0.7/contrib/stress/src/org/apache/cassandra/contrib/stress/tests/IndexedRangeSlicer.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/contrib/stress/src/org/apache/cassandra/contrib/stress/tests/IndexedRangeSlicer.java?rev=1061475&r1=1061474&r2=1061475&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/contrib/stress/src/org/apache/cassandra/contrib/stress/tests/IndexedRangeSlicer.java
(original)
+++ cassandra/branches/cassandra-0.7/contrib/stress/src/org/apache/cassandra/contrib/stress/tests/IndexedRangeSlicer.java
Thu Jan 20 19:36:21 2011
@@ -19,6 +19,7 @@ package org.apache.cassandra.contrib.str
 
 import org.apache.cassandra.contrib.stress.util.OperationThread;
 import org.apache.cassandra.thrift.*;
+import org.apache.cassandra.utils.ByteBufferUtil;
 import org.apache.cassandra.utils.FBUtilities;
 
 import java.nio.ByteBuffer;
@@ -102,11 +103,11 @@ public class IndexedRangeSlicer extends 
     private int getMaxKey(List<KeySlice> keySlices)
     {
         byte[] firstKey = keySlices.get(0).getKey();
-        int maxKey = FBUtilities.byteBufferToInt(ByteBuffer.wrap(firstKey));
+        int maxKey = ByteBufferUtil.toInt(ByteBuffer.wrap(firstKey));
 
         for (KeySlice k : keySlices)
         {
-            int currentKey = FBUtilities.byteBufferToInt(ByteBuffer.wrap(k.getKey()));
+            int currentKey = ByteBufferUtil.toInt(ByteBuffer.wrap(k.getKey()));
 
             if (currentKey > maxKey)
             {



Mime
View raw message