would be better to use the interfaces of the PG class, instead of
relying on its implementation.
Signed-off-by: Kefu Chai <kchai@redhat.com>
shard_services.get_store().do_transaction(
coll_ref,
ObjectStore::Transaction()).then(
- [this, epoch=peering_state.get_osdmap()->get_epoch()]() {
+ [this, epoch=get_osdmap_epoch()]() {
return shard_services.start_operation<LocalPeeringEvent>(
this,
shard_services,
int ret = prepare_info_keymap(
shard_services.get_cct(),
&km,
- peering_state.get_osdmap()->get_epoch(),
+ get_osdmap_epoch(),
info,
last_written_info,
past_intervals,