]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: remove unused variable
authorKefu Chai <kchai@redhat.com>
Mon, 6 Mar 2017 06:01:51 +0000 (14:01 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 30 Mar 2017 12:21:17 +0000 (20:21 +0800)
last_pg_scan is not used in PGMonitor::update_from_paxos(), so remove
it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/PGMonitor.cc

index 508cf9d95ffa3dd7ae34c0a1d5311c6d63b876dc..547d510aa805de6cc21b2f1c9572ad5a1303ca66 100644 (file)
@@ -176,8 +176,6 @@ void PGMonitor::update_from_paxos(bool *need_bootstrap)
 
   // pg/osd keys in leveldb
   // read meta
-  epoch_t last_pg_scan = pg_map.last_pg_scan;
-
   while (version > pg_map.version) {
     // load full state?
     if (pg_map.version == 0) {