cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r999638 - /cassandra/trunk/contrib/py_stress/stress.py
Date Tue, 21 Sep 2010 21:01:10 GMT
Author: jbellis
Date: Tue Sep 21 21:01:10 2010
New Revision: 999638

URL: http://svn.apache.org/viewvc?rev=999638&view=rev
Log:
fix stress.py for removal of Clock struct.  patch by jbellis for CASSANDRA-1501

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=999638&r1=999637&r2=999638&view=diff
==============================================================================
--- cassandra/trunk/contrib/py_stress/stress.py (original)
+++ cassandra/trunk/contrib/py_stress/stress.py Tue Sep 21 21:01:10 2010
@@ -188,7 +188,7 @@ class Operation(Thread):
 class Inserter(Operation):
     def run(self):
         data = md5(str(get_ident())).hexdigest()
-        columns = [Column('C' + str(j), data, Clock(time.time() * 1000000)) for j in xrange(columns_per_key)]
+        columns = [Column('C' + str(j), data, time.time() * 1000000) for j in xrange(columns_per_key)]
         fmt = '%0' + str(len(str(total_keys))) + 'd'
         if 'super' == options.cftype:
             supers = [SuperColumn('S' + str(j), columns) for j in xrange(supers_per_key)]



Mime
View raw message