]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: fix pool deletion checks, races 1380/head
authorSage Weil <sage@inktank.com>
Wed, 5 Mar 2014 23:58:52 +0000 (15:58 -0800)
committerSage Weil <sage@inktank.com>
Wed, 5 Mar 2014 23:58:52 +0000 (15:58 -0800)
commit2adc534a72cc199c8b11dbdf436258cbe147101b
tree35d265702190f126a35ade174085ea06352bed3e
parentffdfb846a20e478f921232447188d49b5470f854
mon/OSDMonitor: fix pool deletion checks, races

Unify the pool deletion safety checks into a single set of functions.
Make sure we check the committed state and error out if there is a problem.
Also check the pending state, if any, and delay+retry if there is a
problem there.

This ensures that we correctly verify that a pool is not in use when it
is deleted (by another tier or by cephfs).  These checks are also now
applied to librados calls.

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