cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r932120 - /cassandra/trunk/test/unit/org/apache/cassandra/Util.java
Date Thu, 08 Apr 2010 21:23:28 GMT
Author: jbellis
Date: Thu Apr  8 21:23:27 2010
New Revision: 932120

URL: http://svn.apache.org/viewvc?rev=932120&view=rev
Log:
r/m unused code in test Util class.  patch by jbellis

Modified:
    cassandra/trunk/test/unit/org/apache/cassandra/Util.java

Modified: cassandra/trunk/test/unit/org/apache/cassandra/Util.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/test/unit/org/apache/cassandra/Util.java?rev=932120&r1=932119&r2=932120&view=diff
==============================================================================
--- cassandra/trunk/test/unit/org/apache/cassandra/Util.java (original)
+++ cassandra/trunk/test/unit/org/apache/cassandra/Util.java Thu Apr  8 21:23:27 2010
@@ -58,17 +58,10 @@ public class Util
         return bytes;
     }
     
-    public static File createTemporarySSTable(String keyspace, String colFam) throws IOException
-    {
-        File tmpDir = new File(System.getProperty("java.io.tmpdir") + File.separator + keyspace);
-        tmpDir.mkdirs();    // Create the per-keyspace temp directory
-        return File.createTempFile(colFam + "-", "-Data.db", tmpDir);
-    }
-
     public static RangeSliceReply getRangeSlice(ColumnFamilyStore cfs) throws IOException,
ExecutionException, InterruptedException
     {
         Token min = StorageService.getPartitioner().getMinimumToken();
-        return cfs.getRangeSlice(ArrayUtils.EMPTY_BYTE_ARRAY,
+        return cfs.getRangeSlice(null,
                                  new Bounds(min, min),
                                  10000,
                                  new SliceRange(ArrayUtils.EMPTY_BYTE_ARRAY, ArrayUtils.EMPTY_BYTE_ARRAY,
false, 10000),



Mime
View raw message