From 0e584635f97ef15dd4b0a5b3b56ac3af6a6ba717 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Sun, 1 Mar 2015 00:43:26 -0500 Subject: [PATCH] librbd: missing callback log message for CopyupRequest object map update Add log message to assist in future debugging of the CopyupRequest state machine. Signed-off-by: Jason Dillaman --- src/librbd/CopyupRequest.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/librbd/CopyupRequest.cc b/src/librbd/CopyupRequest.cc index 68708e8928f..12f938a5299 100644 --- a/src/librbd/CopyupRequest.cc +++ b/src/librbd/CopyupRequest.cc @@ -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, -- 2.47.3