Signed-off-by: John Spray <john.spray@inktank.com>
epoch_t get_epoch() const { return epoch; }
void inc_epoch() { epoch++; }
+ bool get_enabled() const { return enabled; }
+
const utime_t& get_created() const { return created; }
void set_created(utime_t ct) { modified = created = ct; }
const utime_t& get_modified() const { return modified; }
// 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) {
+ if (pending_mdsmap.get_enabled() && (pending_mdsmap.is_data_pool(pool) ||
+ pending_mdsmap.get_metadata_pool() == pool)) {
*ss << "pool '" << poolstr << "' is in use by CephFS";
return -EBUSY;
}