]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/progress: Skip pg_summary update if _events dict is empty. 35973/head
authorManuel Lausch <manuel.lausch@1und1.de>
Wed, 8 Jul 2020 09:42:37 +0000 (11:42 +0200)
committerManuel Lausch <manuel.lausch@1und1.de>
Thu, 9 Jul 2020 06:53:07 +0000 (08:53 +0200)
commit1031edd89d09d18812a3f11b7cbb2ce6759bad13
treeb0903bf68b7d28ccbdaeef1046b480e58bce3617
parent8ab14ab6859df9e7624cf002326aaadfa0f8cb77
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>
src/pybind/mgr/progress/module.py