From 14a3c59bc19ac1f9c2400ffe1b7ebadf45becd4f Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 31 Dec 2019 17:12:41 +0100 Subject: [PATCH] crimson/osd: improve debugs in OpsExecuter::do_op_notify_ack. Signed-off-by: Radoslaw Zarzynski --- src/crimson/osd/ops_executer.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/crimson/osd/ops_executer.cc b/src/crimson/osd/ops_executer.cc index 99a5f7cfceb..b1638d90198 100644 --- a/src/crimson/osd/ops_executer.cc +++ b/src/crimson/osd/ops_executer.cc @@ -372,11 +372,18 @@ OpsExecuter::watch_errorator::future<> OpsExecuter::do_op_notify_ack( return seastar::do_for_each(obc->watchers, [ctx=std::move(ctx)] (auto& kv) { const auto& [key, watchp] = kv; + static_assert( + std::is_same_v, + seastar::shared_ptr>); auto& [cookie, entity] = key; if (ctx.entity != entity) { + logger().debug("skipping watch {}; entity name {} != {}", + key, entity, ctx.entity); return seastar::now(); } if (ctx.watch_cookie != cookie) { + logger().debug("skipping watch {}; cookie {} != {}", + key, ctx.watch_cookie, cookie); return seastar::now(); } logger().info("acking notify on watch {}", key); -- 2.39.5