]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: more constness to PGStatService
authorKefu Chai <kchai@redhat.com>
Thu, 18 May 2017 11:50:36 +0000 (19:50 +0800)
committerSage Weil <sage@redhat.com>
Fri, 2 Jun 2017 17:02:42 +0000 (13:02 -0400)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/Monitor.h
src/mon/PGMonitor.cc
src/mon/PGStatService.h

index e1cdb3ef525579b7c0689be6dbdb863b1a31813c..47beafb4bd0ad3a4f270deda9d29399919c20534 100644 (file)
@@ -170,7 +170,7 @@ public:
   MgrClient mgr_client;
   uint64_t mgr_proxy_bytes = 0;  // in-flight proxied mgr command message bytes
 
-  PGStatService *pgservice;
+  const PGStatService *pgservice;
 
 private:
   void new_tick();
index a9ad27e73f25c9cc68bb5bfa1feff4f5b2a7f821..48a7c0834f602d3cba3275dbcf344123b56c009a 100644 (file)
@@ -1295,7 +1295,7 @@ public:
                         const OSDMap& osdmap,
                         Formatter *f,
                         stringstream *ss,
-                        bufferlist *odata) override {
+                        bufferlist *odata) const override {
     return process_pg_map_command(prefix, cmdmap, pgmap, osdmap, f, ss, odata);
   }
 
@@ -1308,7 +1308,7 @@ public:
                              mempool::osdmap::map<int32_t, uint32_t>* new_weights,
                              std::stringstream *ss,
                              std::string *out_str,
-                             Formatter *f) override {
+                             Formatter *f) const override {
     return reweight::by_utilization(osd_map, pgmap, oload, max_changef,
                                    max_osds, by_pg, pools, no_increasing,
                                    new_weights, ss, out_str, f);
index 9f7900795b10fa2d97f71fcf204270e74ad26a02..4064b109ea9c34ebbae00e13461aac1bff9d1604 100644 (file)
@@ -93,7 +93,7 @@ public:
                                 const OSDMap& osdmap,
                                 Formatter *f,
                                 stringstream *ss,
-                                bufferlist *odata) {
+                                bufferlist *odata) const {
     ceph_abort();
   }
 
@@ -106,7 +106,7 @@ public:
                              mempool::osdmap::map<int32_t, uint32_t>* new_weights,
                              std::stringstream *ss,
                              std::string *out_str,
-                                     Formatter *f) {
+                                     Formatter *f) const {
     ceph_abort();
   }
 };