cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1095192 - /cassandra/branches/cassandra-0.8/tools/py_stress/stress.py
Date Tue, 19 Apr 2011 20:25:43 GMT
Author: jbellis
Date: Tue Apr 19 20:25:42 2011
New Revision: 1095192

URL: http://svn.apache.org/viewvc?rev=1095192&view=rev
Log:
update stress.py for KsDef replication_factor change
patch by Robert Jackson; reviewed by jbellis for CASSANDRA-2509

Modified:
    cassandra/branches/cassandra-0.8/tools/py_stress/stress.py

Modified: cassandra/branches/cassandra-0.8/tools/py_stress/stress.py
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/tools/py_stress/stress.py?rev=1095192&r1=1095191&r2=1095192&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/tools/py_stress/stress.py (original)
+++ cassandra/branches/cassandra-0.8/tools/py_stress/stress.py Tue Apr 19 20:25:42 2011
@@ -185,7 +185,10 @@ def make_keyspaces():
         colms = [ColumnDef(name='C1', validation_class='UTF8Type', index_type=IndexType.KEYS_BITMAP)]
     cfams = [CfDef(keyspace='Keyspace1', name='Standard1', column_metadata=colms),
              CfDef(keyspace='Keyspace1', name='Super1', column_type='Super')]
-    keyspace = KsDef(name='Keyspace1', strategy_class='org.apache.cassandra.locator.SimpleStrategy',
replication_factor=options.replication, cf_defs=cfams)
+    keyspace = KsDef(name='Keyspace1',
+                     strategy_class='org.apache.cassandra.locator.SimpleStrategy',
+                     strategy_options={'replication_factor': str(options.replication)}, 
+                     cf_defs=cfams)
     client = get_client(nodes[0], options.port)
     client.transport.open()
     try:



Mime
View raw message