]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix incorrect l_pq_executing_ops statistics when meet an invalid item in purge... 25560/head
authorTang Junhui <tangjunhui@sangfor.com>
Fri, 23 Nov 2018 02:04:40 +0000 (10:04 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Dec 2018 10:24:42 +0000 (11:24 +0100)
commit32b11c730ebe1bee47ba5a8a19cf4917cd586c1c
tree4cdbcb68c46449cbe647cbc932121ada62e5c22b
parent2083a34e86eaeef06e951eb2ff056457d029734b
mds: fix incorrect l_pq_executing_ops statistics when meet an invalid item in purge queue

l_pq_executing_ops should subtract the ops we added previous
in the condition we meet an invalid item in the purge queue,
otherwise the statistics would always show some ops
in l_pq_executing_ops.

Signed-off-by: Junhui Tang <tangjunhui@sangfor.com.cn>
Fixes: http://tracker.ceph.com/issues/37567
(cherry picked from commit ca61ce4485a56dead04a31e47bd1093217d1f222)
src/mds/PurgeQueue.cc