You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2011/04/29 22:52:58 UTC

svn commit: r1097950 - /cassandra/branches/cassandra-0.8/test/distributed/org/apache/cassandra/TestBase.java

Author: jbellis
Date: Fri Apr 29 20:52:58 2011
New Revision: 1097950

URL: http://svn.apache.org/viewvc?rev=1097950&view=rev
Log:
add empty cf_defs list to satisfy thrift
patch by jbellis

Modified:
    cassandra/branches/cassandra-0.8/test/distributed/org/apache/cassandra/TestBase.java

Modified: cassandra/branches/cassandra-0.8/test/distributed/org/apache/cassandra/TestBase.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/test/distributed/org/apache/cassandra/TestBase.java?rev=1097950&r1=1097949&r2=1097950&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/test/distributed/org/apache/cassandra/TestBase.java (original)
+++ cassandra/branches/cassandra-0.8/test/distributed/org/apache/cassandra/TestBase.java Fri Apr 29 20:52:58 2011
@@ -84,12 +84,11 @@ public abstract class TestBase
             Cassandra.Client client = controller.createClient(hosts.get(0));
             Map<String,String> stratOptions = new HashMap<String,String>();
             stratOptions.put("replication_factor", "" + rf);
-            client.system_add_keyspace(
-                new KsDef(
-                    name,
-                    "org.apache.cassandra.locator.SimpleStrategy",
-                    Arrays.asList(cfdef))
-                .setStrategy_options(stratOptions));
+            client.system_add_keyspace(new KsDef(name,
+                                                 "org.apache.cassandra.locator.SimpleStrategy",
+                                                 Arrays.asList(cfdef))
+                                               .setStrategy_options(stratOptions)
+                                               .setCf_defs(Collections.<CfDef>emptyList()));
 
             // poll, until KS added
             for (InetAddress host : hosts)