]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix no missing inferance
authorSage Weil <sage.weil@dreamhost.com>
Tue, 8 Feb 2011 15:54:17 +0000 (07:54 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Tue, 8 Feb 2011 16:22:45 +0000 (08:22 -0800)
Add missing continue in last_update==last_complete (no missing) case.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/PG.cc

index 237a8beb60055867d5cf98d6f5b8db8d0aba5096..8f723c04f9c3b510d23c0843465438a0302f74ce 100644 (file)
@@ -1633,6 +1633,7 @@ void PG::do_peer(ObjectStore::Transaction& t, list<Context*>& tfin,
       if (pi.last_update == pi.last_complete) {
        dout(10) << " infering no missing (last_update==last_complete) for osd" << peer << dendl;
        peer_missing[peer].num_missing();  // just create the entry.
+       continue;
       } else {
        dout(10) << " still need log+missing from osd" << peer << dendl;
        have_all_missing = false;