mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
rados: add in more (optional) op types
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
a0eb1a8e8c
commit
5320db57ce
@ -106,10 +106,14 @@ def task(ctx, config):
|
||||
'--max-stride-size', str(config.get('max_stride_size', object_size / 5)),
|
||||
'--max-seconds', str(config.get('max_seconds', 0))
|
||||
]
|
||||
if 'copy_from' in op_weights:
|
||||
args.extend([
|
||||
'--op', 'copy_from', str(op_weights.get('copy_from', 0))
|
||||
])
|
||||
for field in [
|
||||
'copy_from', 'is_dirty', 'undirty', 'cache_flush',
|
||||
'cache_try_flush', 'cache_evict',
|
||||
]:
|
||||
if field in op_weights:
|
||||
args.extend([
|
||||
'--op', field, str(op_weights.get(field, 0))
|
||||
])
|
||||
|
||||
def thread():
|
||||
"""Thread spawned by gevent"""
|
||||
|
Loading…
Reference in New Issue
Block a user