]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not request backlog from peers with empty pg
authorSage Weil <sage@newdream.net>
Wed, 29 Sep 2010 15:25:27 +0000 (08:25 -0700)
committerSage Weil <sage@newdream.net>
Wed, 29 Sep 2010 15:45:06 +0000 (08:45 -0700)
This avoids stalling out peering, because the peer just responds with
another 'empty' PG::Info in response (which we already have).

Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/PG.cc

index 2eef533de12283fb7209aa0ab7772b71a950515d..be2ed55f140b91c78538054a8bac4785aaad9a53 100644 (file)
@@ -1364,6 +1364,11 @@ void PG::peer(ObjectStore::Transaction& t, list<Context*>& tfin,
       if (osd->osdmap->is_down(peer))
        continue;
 
+      if (it->second.dne()) {
+        dout(10) << " not requesting summary/backlog; pg dne on osd" << peer << dendl;
+       continue;
+      }
+
       if (peer_summary_requested.count(peer)) {
         dout(10) << " already requested summary/backlog from osd" << peer << dendl;
         continue;