]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: improve debugs in OpsExecuter::do_op_notify_ack.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 31 Dec 2019 16:12:41 +0000 (17:12 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 13 Feb 2020 23:11:40 +0000 (00:11 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/ops_executer.cc

index 99a5f7cfcebdf68fb9d2075dd7e9c7368730f802..b1638d901985b06afbd7293c35c240bf7b25b8af 100644 (file)
@@ -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<std::decay_t<decltype(watchp)>,
+                           seastar::shared_ptr<crimson::osd::Watch>>);
           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);