update PG to hold references of messengers instead of pointers to them,
as their lifecycle will be managed in main.cc
Signed-off-by: Kefu Chai <kchai@redhat.com>
std::string&& name,
ec_profile_t&& ec_profile,
cached_map_t osdmap,
- ceph::net::Messenger* msgr)
+ ceph::net::Messenger& msgr)
: pgid{pgid},
whoami{pg_shard},
pool{std::move(pool)},
std::string&& name,
ec_profile_t&& ec_profile,
cached_map_t osdmap,
- ceph::net::Messenger* msgr);
+ ceph::net::Messenger& msgr);
epoch_t get_osdmap_epoch() const;
const pg_info_t& get_info() const;
pg_shard_set_t actingset, upset;
cached_map_t osdmap;
- ceph::net::Messenger* msgr = nullptr;
+ ceph::net::Messenger& msgr;
};