mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
osd: ReplicatedPG::do_op: error on read-from-lost
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
This commit is contained in:
parent
136dfdeb70
commit
ad4e5f36d4
@ -265,6 +265,12 @@ void ReplicatedPG::do_op(MOSDOp *op)
|
||||
osd->reply_op_error(op, r);
|
||||
return;
|
||||
}
|
||||
|
||||
if ((op->may_read()) && (obc->obs.oi.lost)) {
|
||||
// This object is lost. Reading from it returns an error.
|
||||
osd->reply_op_error(op, -ENFILE);
|
||||
return;
|
||||
}
|
||||
|
||||
bool ok;
|
||||
dout(10) << "do_op mode is " << mode << dendl;
|
||||
|
Loading…
Reference in New Issue
Block a user