]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMonitor: fix segfault when osdmap and pgmap stats are out of sync 640/head
authorSage Weil <sage@inktank.com>
Wed, 25 Sep 2013 22:47:28 +0000 (15:47 -0700)
committerSage Weil <sage@inktank.com>
Wed, 25 Sep 2013 22:47:39 +0000 (15:47 -0700)
commit4d8f78bc6577521ce1872b9285722a303dee5f85
treea5571ee8a04b172804003eb1b02d565c31466742
parentaead63cf0b90e03f2d4f2ccf4441982ae0bc7e33
mon/PGMonitor: fix segfault when osdmap and pgmap stats are out of sync

The leader mon is responsible for propagating changes in the osdmap
into the pgmap (e.g., when a pool or osd goes away).  If that hasn't
happened yet, the pg_map map will be out of sync with the current set
of pools.  We shouldn't crash.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/PGMonitor.cc