From 22828b9a4e325ca207789b5c5a275e42c63da8e7 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Tue, 28 Dec 2010 17:03:12 -0800 Subject: [PATCH] osd: PG::Info::History: init last_epoch_clean It seems that we have not been zeroing PG::Info::History:last_epoch_clean when the History structure is created. This led to some very interesting log output (and bugs!) Signed-off-by: Colin McCabe --- src/osd/PG.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.h b/src/osd/PG.h index 502aec4353f..eb084d75020 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -128,7 +128,7 @@ public: History() : epoch_created(0), - last_epoch_started(0), last_epoch_split(0), + last_epoch_started(0), last_epoch_clean(0), last_epoch_split(0), same_up_since(0), same_acting_since(0), same_primary_since(0) {} void merge(const History &other) {