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 2009/12/16 03:08:40 UTC
svn commit: r891101 - /incubator/cassandra/trunk/contrib/py_stress/stress.py
Author: jbellis
Date: Wed Dec 16 02:08:40 2009
New Revision: 891101
URL: http://svn.apache.org/viewvc?rev=891101&view=rev
Log:
fix stress.py supercolumn inserts. patch by Brandon Williams; reviewed by jbellis for CASSANDRA-602
Modified:
incubator/cassandra/trunk/contrib/py_stress/stress.py
Modified: incubator/cassandra/trunk/contrib/py_stress/stress.py
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/contrib/py_stress/stress.py?rev=891101&r1=891100&r2=891101&view=diff
==============================================================================
--- incubator/cassandra/trunk/contrib/py_stress/stress.py (original)
+++ incubator/cassandra/trunk/contrib/py_stress/stress.py Wed Dec 16 02:08:40 2009
@@ -144,7 +144,7 @@
supers = [SuperColumn(chr(ord('A') + j), columns) for j in xrange(supers_per_key)]
for i in self.range:
key = str(i)
- if supers:
+ if 'super' == options.cftype:
cfmap= {'Super1': [ColumnOrSuperColumn(super_column=s) for s in supers]}
else:
cfmap = {'Standard1': [ColumnOrSuperColumn(column=c) for c in columns]}