diff options
author | Sage Weil <sage@redhat.com> | 2017-05-19 23:01:55 +0200 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2017-06-02 19:02:50 +0200 |
commit | 681d37c05554b8d57cf70c9b4809e6967f03ccd2 (patch) | |
tree | 87fcdd61adedf9123a1902211df83b95f23cbdfe /src/mgr | |
parent | mon/PGMap: new check_osd_map that takes a OSDMap& const (diff) | |
download | ceph-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.cc | 1 |
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); |