{
struct connect_ctx_t {
ObjectContext::watch_key_t key;
+ crimson::net::ConnectionRef conn;
watch_info_t info;
connect_ctx_t(const OSDOp& osd_op, const MOSDOp& msg)
: key(osd_op.op.watch.cookie, msg.get_reqid().name),
+ conn(msg.get_connection()),
info(create_watch_info(osd_op, msg)) {
}
};
} else {
logger().info("op_effect: found existing watcher: {}", ctx.key);
}
- return it->second->connect(nullptr /* conn */, true /* will_ping */);
+ return it->second->connect(std::move(ctx.conn), true /* will_ping */);
});
}