mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
mon: make pool deletion dne error code consistently ENOENT
This matches the check in _prepare_remove_pool() now. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
62a4ad66d1
commit
990febd93a
@ -2447,7 +2447,7 @@ bool OSDMonitor::preprocess_pool_op(MPoolOp *m)
|
||||
|
||||
if (!osdmap.get_pg_pool(m->pool)) {
|
||||
dout(10) << "attempt to delete non-existent pool id " << m->pool << dendl;
|
||||
_pool_op_reply(m, -ENODATA, osdmap.get_epoch());
|
||||
_pool_op_reply(m, -ENOENT, osdmap.get_epoch());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user