]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: bail out of interval loop completely
authorSage Weil <sage@newdream.net>
Fri, 12 Feb 2010 21:27:49 +0000 (13:27 -0800)
committerSage Weil <sage@newdream.net>
Fri, 12 Feb 2010 21:27:49 +0000 (13:27 -0800)
We're going backwards, so once this test fails, it always fails,
and we can break instead of continue.  Any skipped intervals will
be pruned shortly anyway.

src/osd/PG.cc

index 1034278faa28cf20eeb189598e8e6566f614aa91..bd3fde5b425eb2cc06c439cb2f2bc6f3cd1e8e6e 100644 (file)
@@ -889,7 +889,7 @@ void PG::build_prior()
     dout(10) << "build_prior " << interval << dendl;
 
     if (interval.last < info.history.last_epoch_started)
-      continue;  // we don't care
+      break;  // we don't care
 
     if (interval.acting.empty())
       continue;