]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
add debug
authorVenky Shankar <vshankar@redhat.com>
Tue, 11 Mar 2025 10:01:21 +0000 (10:01 +0000)
committerVenky Shankar <vshankar@redhat.com>
Tue, 11 Mar 2025 10:01:21 +0000 (10:01 +0000)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/tools/cephfs_mirror/PeerReplayer.cc

index 639d1f948299d7827d0324441d9fa1708afaf591..b12dfe8685bfbf1af16a4f66e28a97170d85c7d5 100644 (file)
@@ -1359,6 +1359,9 @@ int PeerReplayer::SnapDiffSync::init_sync() {
     return r;
   }
 
+  dout(20) << ": open_snapdiff for dir_root=" << m_dir_root << ", path=., prev="
+           << (*m_prev).first << ", current=" << m_current.first << dendl;
+
   ceph_snapdiff_info info;
   r = ceph_open_snapdiff(m_local, m_dir_root.c_str(), ".",
                          stringify((*m_prev).first).c_str(), stringify(m_current.first).c_str(), &info);
@@ -1469,6 +1472,9 @@ int PeerReplayer::SnapDiffSync::get_entry(std::string *epath, struct ceph_statx
     }
 
     if (S_ISDIR(estx.stx_mode)) {
+      dout(20) << ": open_snapdiff for dir_root=" << m_dir_root << ", path=" << _epath
+               << ", prev=" << (*m_prev).first << ", current=" << m_current.first << dendl;
+
       ceph_snapdiff_info info;
       r = ceph_open_snapdiff(m_local, m_dir_root.c_str(), _epath.c_str(),
                              stringify((*m_prev).first).c_str(), stringify(m_current.first).c_str(), &info);