From 41a32b1205184de238fea680bc3f463ddfa43f45 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Tue, 20 Oct 2020 02:56:58 -0400 Subject: [PATCH] librbd: increase debug logging in ImageCtx Signed-off-by: Jason Dillaman --- src/librbd/ImageCtx.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/librbd/ImageCtx.cc b/src/librbd/ImageCtx.cc index 39f4b0ffc4fd4..ec54762ce01bd 100644 --- a/src/librbd/ImageCtx.cc +++ b/src/librbd/ImageCtx.cc @@ -121,6 +121,10 @@ librados::IoCtx duplicate_io_ctx(librados::IoCtx& io_ctx) { asok_hook(nullptr), trace_endpoint("librbd") { + ldout(cct, 10) << this << " " << __func__ << ": " + << "image_name=" << image_name << ", " + << "image_id=" << image_id << dendl; + if (snap) snap_name = snap; @@ -147,6 +151,8 @@ librados::IoCtx duplicate_io_ctx(librados::IoCtx& io_ctx) { } ImageCtx::~ImageCtx() { + ldout(cct, 10) << this << " " << __func__ << dendl; + ceph_assert(config_watcher == nullptr); ceph_assert(image_watcher == NULL); ceph_assert(exclusive_lock == NULL); -- 2.39.5