mirror of
https://github.com/ceph/s3-tests.git
synced 2024-12-25 13:56:37 +00:00
Code layout cleanup.
This commit is contained in:
parent
deb8be9957
commit
9ecaf63fbe
1 changed files with 15 additions and 11 deletions
|
@ -119,18 +119,22 @@ def main():
|
||||||
print "Spawning {r} readers and {w} writers...".format(r=options.num_readers, w=options.num_writers)
|
print "Spawning {r} readers and {w} writers...".format(r=options.num_readers, w=options.num_writers)
|
||||||
group = gevent.pool.Group()
|
group = gevent.pool.Group()
|
||||||
for x in xrange(options.num_writers):
|
for x in xrange(options.num_writers):
|
||||||
group.spawn(writer, bucket,
|
group.spawn(
|
||||||
name=x,
|
writer,
|
||||||
queue=q,
|
bucket=bucket,
|
||||||
file_size=options.file_size,
|
name=x,
|
||||||
file_stddev=options.stddev,
|
queue=q,
|
||||||
file_name_seed=r,
|
file_size=options.file_size,
|
||||||
)
|
file_stddev=options.stddev,
|
||||||
|
file_name_seed=r,
|
||||||
|
)
|
||||||
for x in xrange(options.num_readers):
|
for x in xrange(options.num_readers):
|
||||||
group.spawn(reader, bucket,
|
group.spawn(
|
||||||
name=x,
|
reader,
|
||||||
queue=q,
|
bucket=bucket,
|
||||||
)
|
name=x,
|
||||||
|
queue=q,
|
||||||
|
)
|
||||||
def stop():
|
def stop():
|
||||||
group.kill(block=True)
|
group.kill(block=True)
|
||||||
q.put(StopIteration)
|
q.put(StopIteration)
|
||||||
|
|
Loading…
Reference in a new issue