]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMonitor: avoid iterating over all pgs to find stale
authorSage Weil <sage@redhat.com>
Mon, 14 Sep 2015 21:04:23 +0000 (17:04 -0400)
committerSage Weil <sage@redhat.com>
Sat, 14 Nov 2015 03:34:41 +0000 (22:34 -0500)
commit28138c65a6b02ba0dd0e65105303870bb8d2b86e
tree575674aa74297197d543d1b1945af3848a4671ad
parent492720e85dff6fa1f102c1f782a0f4bf47d71082
mon/PGMonitor: avoid iterating over all pgs to find stale

Instead of iterating over all pgs when an osd goes down, make a
set of all osds that might have gone down, and only check pgs that
it manages.  This is more efficient, especially for large clusters
with large numbers of OSDs.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/mon/PGMonitor.cc
src/mon/PGMonitor.h