mirror of
https://github.com/ceph/ceph
synced 2025-03-22 18:27:10 +00:00
qa/tasks/mds_thrash: fix thrash iteration never skip
Signed-off-by: Lianne <liyan.wang@xtaotech.com>
This commit is contained in:
parent
26b01013e9
commit
2b50cefa89
@ -272,7 +272,7 @@ class MDSThrasher(Thrasher, Greenlet):
|
||||
weight = 1.0
|
||||
if 'thrash_weights' in self.config:
|
||||
weight = self.config['thrash_weights'].get(label, '0.0')
|
||||
skip = random.randrange(0.0, 1.0)
|
||||
skip = random.random()
|
||||
if weight <= skip:
|
||||
self.log('skipping thrash iteration with skip ({skip}) > weight ({weight})'.format(skip=skip, weight=weight))
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user