Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E99F10D7 for ; Tue, 19 Apr 2011 20:26:06 +0000 (UTC) Received: (qmail 22083 invoked by uid 500); 19 Apr 2011 20:26:06 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 22060 invoked by uid 500); 19 Apr 2011 20:26:06 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 22052 invoked by uid 99); 19 Apr 2011 20:26:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2011 20:26:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2011 20:26:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2ECFD23888FD; Tue, 19 Apr 2011 20:25:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1095192 - /cassandra/branches/cassandra-0.8/tools/py_stress/stress.py Date: Tue, 19 Apr 2011 20:25:43 -0000 To: commits@cassandra.apache.org From: jbellis@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110419202543.2ECFD23888FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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: