]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: mark stale PGs 13207/head
authorSage Weil <sage@redhat.com>
Fri, 10 Feb 2017 15:12:29 +0000 (10:12 -0500)
committerSage Weil <sage@redhat.com>
Thu, 16 Feb 2017 17:04:50 +0000 (12:04 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/ClusterState.cc

index a000408652533ae3f492a94fc8fe726af2a8a33d..c689eb310a7b015999ae5044ce2d6866efeaa569 100644 (file)
@@ -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<int> 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