]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: additional debugging messages for snapshot-based mirroring
authorJason Dillaman <dillaman@redhat.com>
Fri, 21 Feb 2020 18:36:02 +0000 (13:36 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 21 Feb 2020 18:36:02 +0000 (13:36 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/mirror/snapshot/CreateNonPrimaryRequest.cc
src/librbd/mirror/snapshot/SetImageStateRequest.cc

index c70ae82d5be29b05d511fc218fe6311c538a23b7..8922ee240767090857e0e1e4ab92373c9542f276 100644 (file)
@@ -116,13 +116,13 @@ void CreateNonPrimaryRequest<I>::handle_get_mirror_image(int r) {
 template <typename I>
 void CreateNonPrimaryRequest<I>::create_snapshot() {
   CephContext *cct = m_image_ctx->cct;
-  ldout(cct, 20) << dendl;
 
   cls::rbd::MirrorSnapshotNamespace ns{
     (m_demoted ? cls::rbd::MIRROR_SNAPSHOT_STATE_NON_PRIMARY_DEMOTED :
                  cls::rbd::MIRROR_SNAPSHOT_STATE_NON_PRIMARY), {},
     m_primary_mirror_uuid, m_primary_snap_id};
   ns.snap_seqs = m_snap_seqs;
+  ldout(cct, 20) << "ns=" << ns << dendl;
 
   auto ctx = create_context_callback<
     CreateNonPrimaryRequest<I>,
index 1496e20ad4b23481126f9e007282c26a6b1e6231..fae3bcb599111cab6c709b73f67679e0d39d0741 100644 (file)
@@ -70,6 +70,8 @@ void SetImageStateRequest<I>::handle_get_snap_limit(int r) {
     return;
   }
 
+  ldout(cct, 20) << "snap_limit=" << m_image_state.snap_limit << dendl;
+
   get_metadata();
 }