From 01bbcd03a5e7e1669d81a57c7ed372ed64ea3c51 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 17 Nov 2008 14:08:30 -0800 Subject: [PATCH] osd: fix build_prior any_up logic again last_epoch_started may be anywhere in the interval. --- src/osd/PG.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 7fa4801065754..e1c1f08af8dae 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -732,8 +732,9 @@ void PG::build_prior() // did any osds survive _this_ interval? any_survived = true; - // are any osds alive from the last epoch started? - if (interval.first == info.history.last_epoch_started) + // are any osds alive from the last interval started? + if (interval.first <= info.history.last_epoch_started && + interval.last >= info.history.last_epoch_started) any_up_now = true; // has it been up this whole time? -- 2.39.5