]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: erase osd_epochs entry too when we erase osd_stat entry 15573/head
authorSage Weil <sage@redhat.com>
Thu, 8 Jun 2017 02:49:23 +0000 (22:49 -0400)
committerSage Weil <sage@redhat.com>
Thu, 8 Jun 2017 13:18:05 +0000 (09:18 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMap.cc

index a623e20b2ea52cc1262506a3256834919836ce02..b39b6a3d1863fd646cfe87ab116d4578074349f9 100644 (file)
@@ -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