From: Radoslaw Zarzynski Date: Tue, 31 Dec 2019 16:12:41 +0000 (+0100) Subject: crimson/osd: improve debugs in OpsExecuter::do_op_notify_ack. X-Git-Tag: v15.1.1~415^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=14a3c59bc19ac1f9c2400ffe1b7ebadf45becd4f;p=ceph.git crimson/osd: improve debugs in OpsExecuter::do_op_notify_ack. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/osd/ops_executer.cc b/src/crimson/osd/ops_executer.cc index 99a5f7cfcebd..b1638d901985 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);