From 28257a0057cdf0fbf6571bbd4dffa962192e6e96 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 12 Feb 2010 13:27:49 -0800 Subject: [PATCH] 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. --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 1034278faa28c..bd3fde5b425eb 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; -- 2.39.5