Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
return seastar::now();
},
[] (auto&& ctx, ObjectContextRef obc, Ref<PG> pg) {
+ assert(pg);
auto [it, emplaced] = obc->watchers.try_emplace(ctx.key, nullptr);
if (emplaced) {
const auto& [cookie, entity] = ctx.key;
void Watch::do_watch_timeout(Ref<PG> pg)
{
+ assert(pg);
auto [op, fut] = pg->get_shard_services().start_operation<WatchTimeoutRequest>(
shared_from_this(), pg);
std::ignore = std::move(fut).then([op=std::move(op), this] {
winfo(winfo),
entity_name(entity_name),
timeout_timer([this, pg=std::move(pg)] {
+ assert(pg);
return do_watch_timeout(pg);
}) {
}