From 71d8ae5661afb9ad2c702c7dc7260c71c82c1fdb Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 24 Nov 2008 11:34:02 -0800 Subject: [PATCH] osd: ignore intervals prior to last_epoch_started in build_prior We may have raised last_epoch_started without trimming past_intervals. --- src/osd/PG.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index caee8bf2d4644..171ab796e01e9 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -780,6 +780,9 @@ void PG::build_prior() Interval &interval = p->second; dout(10) << "build_prior " << interval << dendl; + if (interval.last < info.history.last_epoch_started) + continue; // we don't care + if (interval.acting.empty()) continue; -- 2.39.5