From: Sage Weil Date: Fri, 12 Feb 2010 21:27:49 +0000 (-0800) Subject: osd: bail out of interval loop completely X-Git-Tag: v0.19~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=28257a0057cdf0fbf6571bbd4dffa962192e6e96;p=ceph.git osd: bail out of interval loop completely 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. --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 1034278faa28..bd3fde5b425e 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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;