]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: more useful message to find out potential unhealth osd 4178/head
authorXinze Chi <xmdxcxz@gmail.com>
Wed, 25 Mar 2015 11:44:29 +0000 (19:44 +0800)
committerXinze Chi <xmdxcxz@gmail.com>
Wed, 25 Mar 2015 11:44:29 +0000 (19:44 +0800)
Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
src/osd/ReplicatedBackend.cc

index 680c27a5e8be6091284542d670ad384b4979086a..7285e2d3f2ffdf5b6b440870e49f8601e9fbb421 100644 (file)
@@ -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);