]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: add log message for completion of AioRequest
authorJason Dillaman <dillaman@redhat.com>
Tue, 3 Mar 2015 02:05:52 +0000 (21:05 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 3 Mar 2015 02:18:39 +0000 (21:18 -0500)
The log message will simplify future debugging activities.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AioRequest.cc
src/librbd/AioRequest.h

index dff7709984bd0774bf33fa4dc7ae3f809f1bb86d..5b18bdf76261bb776be864bd0221ddfa58718df4 100644 (file)
@@ -48,6 +48,18 @@ namespace librbd {
     }
   }
 
+  void AioRequest::complete(int r)
+  {
+    if (should_complete(r)) {
+      ldout(m_ictx->cct, 20) << "complete " << this << dendl;
+      if (m_hide_enoent && r == -ENOENT) {
+       r = 0;
+      }
+      m_completion->complete(r);
+      delete this;
+    }
+  }
+
   void AioRequest::read_from_parent(vector<pair<uint64_t,uint64_t> >& image_extents)
   {
     assert(!m_parent_completion);
index 6da04b802fb4d0c3d7d1b8d50a3a0dc81675fe4e..7c16ca50ed279e68e1bab585ec01b8625681c1d6 100644 (file)
@@ -34,15 +34,7 @@ namespace librbd {
                Context *completion, bool hide_enoent);
     virtual ~AioRequest();
 
-    void complete(int r)
-    {
-      if (should_complete(r)) {
-       if (m_hide_enoent && r == -ENOENT)
-         r = 0;
-       m_completion->complete(r);
-       delete this;
-      }
-    }
+    void complete(int r);
 
     virtual bool should_complete(int r) = 0;
     virtual int send() = 0;