]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/PGMonitor: reset PGMonitor member vars when luminous
authorKefu Chai <kchai@redhat.com>
Fri, 19 May 2017 09:52:52 +0000 (17:52 +0800)
committerSage Weil <sage@redhat.com>
Fri, 2 Jun 2017 17:02:46 +0000 (13:02 -0400)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/PGMonitor.cc

index b815bb89f19957422d9489f52f15377f239dc124..fd586b4d3697db75128d63d22ad221f95c1248c6 100644 (file)
@@ -178,6 +178,9 @@ void PGMonitor::update_from_paxos(bool *need_bootstrap)
     did_delete = true;
     dout(10) << __func__ << " deleted, clearing in-memory PGMap" << dendl;
     pg_map = PGMap();
+    pending_inc = PGMap::Incremental();
+    pgservice.reset();
+    last_osd_report.clear();
     return;
   }