From a22511db2240fe043b827fe08dfc6f9b42fece51 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Tue, 17 May 2011 17:36:39 -0700 Subject: [PATCH] PG: update same_acting_since when acting or up changes This is a hack since we currently use same_up_since to denote the beginning of an interval. We should probably change this usaged or rename it to same_interval since. Signed-off-by: Josh Durgin --- 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 f568c8741998c..8e5b5f4c8f4d6 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -3427,7 +3427,7 @@ void PG::warm_restart(const OSDMap& lastmap, const vector& newup, const vec i.acting = oldacting; i.up = oldup; - if (oldacting != acting) { + if (oldacting != acting || oldup != up) { info.history.same_acting_since = osdmap.get_epoch(); } if (oldup != up) { -- 2.39.5