From: Sage Weil Date: Fri, 19 May 2017 21:01:55 +0000 (-0400) Subject: mgr/ClusterState: apply latest osdmap to pgmap X-Git-Tag: ses5-milestone6~8^2~19^2~44 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=681d37c05554b8d57cf70c9b4809e6967f03ccd2;p=ceph.git mgr/ClusterState: apply latest osdmap to pgmap In particular, clear out deleted pools and clear osd stats for deleted/down/out osds. Signed-off-by: Sage Weil --- diff --git a/src/mgr/ClusterState.cc b/src/mgr/ClusterState.cc index c40df895ef1..c2e7550fa5e 100644 --- a/src/mgr/ClusterState.cc +++ b/src/mgr/ClusterState.cc @@ -98,6 +98,7 @@ void ClusterState::notify_osdmap(const OSDMap &osd_map) PGMap::Incremental pending_inc; pending_inc.version = pg_map.version + 1; // to make apply_incremental happy + PGMapUpdater::check_osd_map(g_ceph_context, osd_map, pg_map, &pending_inc); PGMapUpdater::update_creating_pgs(osd_map, pg_map, &pending_inc); PGMapUpdater::register_new_pgs(osd_map, pg_map, &pending_inc);