From: Xinze Chi Date: Wed, 25 Mar 2015 11:44:29 +0000 (+0800) Subject: osd: more useful message to find out potential unhealth osd X-Git-Tag: v9.0.1~160^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4178%2Fhead;p=ceph.git osd: more useful message to find out potential unhealth osd Signed-off-by: Xinze Chi --- diff --git a/src/osd/ReplicatedBackend.cc b/src/osd/ReplicatedBackend.cc index 680c27a5e8b..7285e2d3f2f 100644 --- a/src/osd/ReplicatedBackend.cc +++ b/src/osd/ReplicatedBackend.cc @@ -680,12 +680,18 @@ void ReplicatedBackend::sub_op_modify_reply(OpRequestRef op) if (r->ack_type & CEPH_OSD_FLAG_ONDISK) { assert(ip_op.waiting_for_commit.count(from)); ip_op.waiting_for_commit.erase(from); - if (ip_op.op) - ip_op.op->mark_event("sub_op_commit_rec"); + if (ip_op.op) { + ostringstream ss; + ss << "sub_op_commit_rec from " << from; + ip_op.op->mark_event(ss.str()); + } } else { assert(ip_op.waiting_for_applied.count(from)); - if (ip_op.op) - ip_op.op->mark_event("sub_op_applied_rec"); + if (ip_op.op) { + ostringstream ss; + ss << "sub_op_applied_rec from " << from; + ip_op.op->mark_event(ss.str()); + } } ip_op.waiting_for_applied.erase(from);