]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap: clear pool sum when last pg is deleted 1573/head
authorSage Weil <sage@inktank.com>
Mon, 31 Mar 2014 17:42:23 +0000 (10:42 -0700)
committerSage Weil <sage@inktank.com>
Mon, 31 Mar 2014 17:42:23 +0000 (10:42 -0700)
commit81853c618bbb1e6a683edc6f3a548110d838b8bf
tree09e24ccdd872fcc5e0cf6a115ef6e9bcbb581600
parentb3ffce8782027a79cf304ed8ad705aa8111d4255
mon/PGMap: clear pool sum when last pg is deleted

Use the x.0 pg as a sentinel for the existence of the pool.  Note that we
have to clean in up two paths: apply_incrmenetal (which is actually
deprecated) and the normal PGMonitor refresh.

Fixes: #7912
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/PGMap.cc
src/mon/PGMap.h
src/mon/PGMonitor.cc