]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "mon: OSDMonitor: Refuse to delete CephFS pools" 2056/head
authorJohn Spray <john.spray@redhat.com>
Tue, 1 Jul 2014 21:04:25 +0000 (22:04 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 1 Jul 2014 21:06:50 +0000 (22:06 +0100)
This reverts commit c7d265a9b276aad5caf9b35f3ce8bc7bdd169f0f.

Because this pre-dates the `fs rm` command, this change was
preventing firefly users from ever deleting their filesystem pools.

Fixes: #8010
Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/OSDMonitor.cc

index c949a8b4f22a7e378eeecb6c970348095e3e84f5..dca75415b68c2487ba143c41ac87b8110a054d20 100644 (file)
@@ -5581,14 +5581,6 @@ int OSDMonitor::_check_remove_pool(int64_t pool, const pg_pool_t *p,
 {
   string poolstr = osdmap.get_pool_name(pool);
 
-  // If the Pool is in use by CephFS, refuse to delete it
-  MDSMap const &pending_mdsmap = mon->mdsmon()->pending_mdsmap;
-  if (pending_mdsmap.is_data_pool(pool) ||
-      pending_mdsmap.get_metadata_pool() == pool) {
-    *ss << "pool '" << poolstr << "' is in use by CephFS";
-    return -EBUSY;
-  }
-
   if (p->tier_of >= 0) {
     *ss << "pool '" << poolstr << "' is a tier of '"
        << osdmap.get_pool_name(p->tier_of) << "'";