]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/progress: Skip pg_summary update if _events dict is empty. 36075/head
authorManuel Lausch <manuel.lausch@1und1.de>
Wed, 8 Jul 2020 09:42:37 +0000 (11:42 +0200)
committerNathan Cutler <ncutler@suse.com>
Mon, 13 Jul 2020 20:08:50 +0000 (22:08 +0200)
commit922944d471371f3fc1481cc4fc9ba6a03a5190da
tree4366fe4e35231a4e6d44aab6d04ad1ba599acbcd
parent04312ff7a372d3d10b25c9c516fc487f573f0586
mgr/progress: Skip pg_summary update if _events dict is empty.

The get call of pg_stats and pg_ready are expensive and are not necessary in this case. This avoids blocking other modules like the prometheus module

Fixes: https://tracker.ceph.com/issues/46416
Signed-off-by: Manuel Lausch <manuel.lausch@1und1.de>
(cherry picked from commit 1031edd89d09d18812a3f11b7cbb2ce6759bad13)
src/pybind/mgr/progress/module.py