]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: add const markers to some unfixed functions
authorGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 23 Dec 2011 22:27:15 +0000 (14:27 -0800)
committerSage Weil <sage@newdream.net>
Thu, 29 Dec 2011 16:44:03 +0000 (08:44 -0800)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/osd/OSDMap.h

index dab7ab4b1245b4ee979973661b6c036ac8dba443..6d18bc95a9b6c9ae2e626b45261abf9f5c634e25 100644 (file)
@@ -490,7 +490,7 @@ private:
   }
 
 public:
-  int pg_to_osds(pg_t pg, vector<int>& raw) {
+  int pg_to_osds(pg_t pg, vector<int>& raw) const {
     const pg_pool_t *pool = get_pg_pool(pg.pool());
     if (!pool)
       return 0;
@@ -616,7 +616,7 @@ public:
       return PG_ROLE_MIDDLE;
   }
   
-  int get_pg_role(pg_t pg, int osd) {
+  int get_pg_role(pg_t pg, int osd) const {
     vector<int> group;
     int nrep = pg_to_osds(pg, group);
     return calc_pg_role(osd, group, nrep);