Skip to content

Commit

Permalink
update stress.py for KsDef replication_factor change
Browse files Browse the repository at this point in the history
patch by Robert Jackson; reviewed by jbellis for CASSANDRA-2509

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.8@1095192 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jbellis committed Apr 19, 2011
1 parent 1dd8d37 commit 646a855
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/py_stress/stress.py
Expand Up @@ -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:
Expand Down

0 comments on commit 646a855

Please sign in to comment.