summaryrefslogtreecommitdiffstats
path: root/src/mgr
diff options
context:
space:
mode:
authorSage Weil <sage@redhat.com>2017-05-19 23:01:55 +0200
committerSage Weil <sage@redhat.com>2017-06-02 19:02:50 +0200
commit681d37c05554b8d57cf70c9b4809e6967f03ccd2 (patch)
tree87fcdd61adedf9123a1902211df83b95f23cbdfe /src/mgr
parentmon/PGMap: new check_osd_map that takes a OSDMap& const (diff)
downloadceph-681d37c05554b8d57cf70c9b4809e6967f03ccd2.tar.xz
ceph-681d37c05554b8d57cf70c9b4809e6967f03ccd2.zip
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 <sage@redhat.com>
Diffstat (limited to 'src/mgr')
-rw-r--r--src/mgr/ClusterState.cc1
1 files changed, 1 insertions, 0 deletions
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);