]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: change peering wq "drain" while not active
authorSage Weil <sage@redhat.com>
Sun, 5 Nov 2017 17:02:22 +0000 (11:02 -0600)
committerSage Weil <sage@redhat.com>
Mon, 4 Dec 2017 18:45:16 +0000 (12:45 -0600)
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>
src/osd/OSD.cc

index d3c737247999bedab5756e289af3f29d63a7a280..8cc099cc7ecbf088d4fc6afda508d4146ca1afec 100644 (file)
@@ -7691,8 +7691,8 @@ void OSD::_committed_osd_maps(epoch_t first, epoch_t last, MOSDMap *m)
     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();
   }