]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: missing callback log message for CopyupRequest object map update
authorJason Dillaman <dillaman@redhat.com>
Sun, 1 Mar 2015 05:43:26 +0000 (00:43 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 2 Mar 2015 19:19:06 +0000 (14:19 -0500)
Add log message to assist in future debugging of the CopyupRequest
state machine.

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

index 68708e8928f43b9d6680054d68c87f6d0ac0eb9f..12f938a52991d7736bf12f838777e060bd8633b4 100644 (file)
@@ -139,7 +139,7 @@ namespace librbd {
        // nothing to copyup
        return true;
       } else if (send_object_map()) {
-       return true; 
+       return true;
       }
       break;
 
@@ -169,6 +169,11 @@ namespace librbd {
   }
 
   bool CopyupRequest::send_object_map() {
+    ldout(m_ictx->cct, 20) << __func__ << " " << this
+                          << ": oid " << m_oid
+                           << ", extents " << m_image_extents
+                           << dendl;
+
     bool copyup = false;
     {
       RWLock::RLocker l(m_ictx->owner_lock);
@@ -177,7 +182,7 @@ namespace librbd {
       } else if (!m_ictx->image_watcher->is_lock_owner()) {
        ldout(m_ictx->cct, 20) << "exclusive lock not held for copy-on-read"
                               << dendl;
-       return true; 
+       return true;
       } else {
        m_state = STATE_OBJECT_MAP;
         if (!m_ictx->object_map.aio_update(m_object_no, OBJECT_EXISTS,