From a883bac077ae8f3f332aeb711bce45c046f65672 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 7 Jun 2017 22:49:23 -0400 Subject: [PATCH] mon/PGMap: erase osd_epochs entry too when we erase osd_stat entry Signed-off-by: Sage Weil --- src/mon/PGMap.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index a623e20b2ea5..b39b6a3d1863 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -1130,6 +1130,7 @@ void PGMap::apply_incremental(CephContext *cct, const Incremental& inc) if (t != osd_stat.end()) { stat_osd_sub(t->first, t->second); osd_stat.erase(t); + osd_epochs.erase(*p); } // remove these old osds from full/nearfull set(s), too -- 2.47.3