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:
Sage Weil 2012-06-21 11:16:39 -07:00
parent 62a4ad66d1
commit 990febd93a

View File

@ -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;
}