mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
osd: do not bother with misdirected op diagnosis by default
We enable osd_debug_misdirected_ops in QA, but this is wasted effort on a production cluster. In particular, it means that a idle client that sends an op to the wrong OSD based on an old map will require that OSD to load that old map into memory to decide whether to print a warning... all on the off-chance that the client is buggy. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
c150cba817
commit
0ff3d4291c
@ -1528,6 +1528,10 @@ void OSDService::reply_op_error(OpRequestRef op, int err, eversion_t v,
|
||||
|
||||
void OSDService::handle_misdirected_op(PG *pg, OpRequestRef op)
|
||||
{
|
||||
if (!cct->_conf->osd_debug_misdirected_ops) {
|
||||
return;
|
||||
}
|
||||
|
||||
const MOSDOp *m = static_cast<const MOSDOp*>(op->get_req());
|
||||
assert(m->get_type() == CEPH_MSG_OSD_OP);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user