]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap: return empty stats if pool is not in sum 1375/head
authorSage Weil <sage@inktank.com>
Wed, 5 Mar 2014 18:44:41 +0000 (10:44 -0800)
committerSage Weil <sage@inktank.com>
Wed, 5 Mar 2014 18:44:41 +0000 (10:44 -0800)
commitf6edceefe2ab469f13e1ef7a7bc770bb856db061
treede24faa500d18583aa597f3a7aaced294b9aaa4b
parent4901347e893623900746e056dfd72586edf05fef
mon/PGMap: return empty stats if pool is not in sum

Greg was right!

When a pool is created, the PGs are not added to the PGMap until the *next*
proposal.  Weaken the assert here and return empty stats for non-existent
(new) pools so that a pool create + tier add sequence does not crash.

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