You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2010/08/03 22:39:57 UTC
svn commit: r982029 - /cassandra/trunk/contrib/py_stress/stress.py
Author: brandonwilliams
Date: Tue Aug 3 20:39:57 2010
New Revision: 982029
URL: http://svn.apache.org/viewvc?rev=982029&view=rev
Log:
Use keyword args for CfDef/KsDef to futureproof. Patch by Nirmal Ranganathan, reviewed by brandonwilliams for CASSANDRA-1352
Modified:
cassandra/trunk/contrib/py_stress/stress.py
Modified: cassandra/trunk/contrib/py_stress/stress.py
URL: http://svn.apache.org/viewvc/cassandra/trunk/contrib/py_stress/stress.py?rev=982029&r1=982028&r2=982029&view=diff
==============================================================================
--- cassandra/trunk/contrib/py_stress/stress.py (original)
+++ cassandra/trunk/contrib/py_stress/stress.py Tue Aug 3 20:39:57 2010
@@ -151,9 +151,9 @@ def get_client(host='127.0.0.1', port=91
return client
def make_keyspaces():
- cfams = [CfDef('Keyspace1', 'Standard1'),
- CfDef('Keyspace1', 'Super1', 'Super')]
- keyspace = KsDef('Keyspace1', 'org.apache.cassandra.locator.RackUnawareStrategy', options.replication, cfams)
+ cfams = [CfDef(keyspace='Keyspace1', name='Standard1'),
+ CfDef(keyspace='Keyspace1', name='Super1', column_type='Super')]
+ keyspace = KsDef(name='Keyspace1', strategy_class='org.apache.cassandra.locator.RackUnawareStrategy', replication_factor=options.replication, cf_defs=cfams)
client = get_client(nodes[0], options.port)
client.transport.open()
try: