From 3893432646b7bb70a85b72ca1bd827c42fdd912a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 10 Feb 2017 10:12:29 -0500 Subject: [PATCH] mgr: mark stale PGs Signed-off-by: Sage Weil --- src/mgr/ClusterState.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mgr/ClusterState.cc b/src/mgr/ClusterState.cc index a000408652533..c689eb310a7b0 100644 --- a/src/mgr/ClusterState.cc +++ b/src/mgr/ClusterState.cc @@ -103,6 +103,12 @@ void ClusterState::notify_osdmap(const OSDMap &osd_map) PGMapUpdater::update_creating_pgs(osd_map, &pg_map, &pending_inc); PGMapUpdater::register_new_pgs(osd_map, &pg_map, &pending_inc); + // brute force this for now (don't bother being clever by only + // checking osds that went up/down) + set need_check_down_pg_osds; + PGMapUpdater::check_down_pgs(osd_map, &pg_map, true, + need_check_down_pg_osds, &pending_inc); + pg_map.apply_incremental(g_ceph_context, pending_inc); // TODO: Complete the separation of PG state handling so -- 2.39.5