Use the min epoch helpers instead of explicitly draining the work
queue to make sure that app PGs have processed the new maps.
Signed-off-by: Sage Weil <sage@redhat.com>
maybe_update_heartbeat_peers();
if (!is_active()) {
- dout(10) << " not yet active; waiting for peering wq to drain" << dendl;
- peering_wq.drain();
+ dout(10) << " not yet active; waiting for peering work to drain" << dendl;
+ service.wait_min_pg_epoch(last);
} else {
activate_map();
}