From: N Balachandran Date: Fri, 23 Jun 2023 13:13:13 +0000 (+0530) Subject: rbd-mirror: add logs to PoolReplayer X-Git-Tag: v19.0.0~969^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bc9fe5b08b6e75c11cd3ccaa025beef6e7b6bae1;p=ceph.git rbd-mirror: add logs to PoolReplayer This commit adds logs to some PoolReplayer functions in order to make debugging easier. Signed-off-by: N Balachandran --- diff --git a/src/tools/rbd_mirror/PoolReplayer.cc b/src/tools/rbd_mirror/PoolReplayer.cc index 71c58ad8ee046..81292ba07e212 100644 --- a/src/tools/rbd_mirror/PoolReplayer.cc +++ b/src/tools/rbd_mirror/PoolReplayer.cc @@ -406,6 +406,7 @@ void PoolReplayer::init(const std::string& site_name) { template void PoolReplayer::shut_down() { + dout(20) << dendl; { std::lock_guard l{m_lock}; m_stopping = true; @@ -453,6 +454,10 @@ int PoolReplayer::init_rados(const std::string &cluster_name, const std::string &description, RadosRef *rados_ref, bool strip_cluster_overrides) { + dout(10) << "cluster_name=" << cluster_name << ", client_name=" << client_name + << ", mon_host=" << mon_host << ", strip_cluster_overrides=" + << strip_cluster_overrides << dendl; + // NOTE: manually bootstrap a CephContext here instead of via // the librados API to avoid mixing global singletons between // the librados shared library and the daemon @@ -723,6 +728,7 @@ void PoolReplayer::update_namespace_replayers() { template int PoolReplayer::list_mirroring_namespaces( std::set *namespaces) { + dout(20) << dendl; ceph_assert(ceph_mutex_is_locked(m_lock)); std::vector names; @@ -756,6 +762,7 @@ int PoolReplayer::list_mirroring_namespaces( template void PoolReplayer::reopen_logs() { + dout(20) << dendl; std::lock_guard locker{m_lock}; if (m_local_rados) { @@ -769,6 +776,7 @@ void PoolReplayer::reopen_logs() template void PoolReplayer::namespace_replayer_acquire_leader(const std::string &name, Context *on_finish) { + dout(20) << dendl; ceph_assert(ceph_mutex_is_locked(m_lock)); auto it = m_namespace_replayers.find(name);