]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/TrackedOp: fix 'warned' handling
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 27 Apr 2018 21:07:12 +0000 (23:07 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 27 Apr 2018 21:07:12 +0000 (23:07 +0200)
commitf91ffea306ce46587ac4ef8e4f488dbc4d50e846
treec53b7f9f33b70905286c8e9851940e741c749088
parent6ac89cad93eb8362eaa3d4c9fdc92314d22b8a0f
common/TrackedOp: fix 'warned' handling

Fix for this cppcheck issue:

[src/common/TrackedOp.cc:385]: (style) The scope of the variable
 'warned' can be reduced.

Actually it seems that warned was not set correctly anymore
after rewrite of the code. Set 'warned' in with_slow_ops_in_flight()
as already done with number of slow iops.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/common/TrackedOp.cc
src/common/TrackedOp.h