]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: constify the init() function params
authorGreg Farnum <greg@inktank.com>
Sun, 13 Apr 2014 04:26:55 +0000 (21:26 -0700)
committerGreg Farnum <greg@inktank.com>
Mon, 5 May 2014 22:29:14 +0000 (15:29 -0700)
Signed-off-by: Greg Farnum <greg@inktank.com>
src/osd/PG.cc
src/osd/PG.h

index dc9d4715eb932f1d1452ab2c44a407d4f69c43be..2bbb440568b092a5e0df3c848c8edd15c2afda76 100644 (file)
@@ -2312,9 +2312,9 @@ void PG::clear_publish_stats()
  */
 void PG::init(
   int role,
-  vector<int>& newup, int new_up_primary,
-  vector<int>& newacting, int new_acting_primary,
-  pg_history_t& history,
+  const vector<int>& newup, int new_up_primary,
+  const vector<int>& newacting, int new_acting_primary,
+  const pg_history_t& history,
   pg_interval_map_t& pi,
   bool backfill,
   ObjectStore::Transaction *t)
index 6a15f2b366a91995ef7d0ea5f95b89f7ba9b1db5..b750231e28c328995cd42335723ce9b19d20622f 100644 (file)
@@ -1955,11 +1955,11 @@ public:
 
   void init(
     int role,
-    vector<int>& up,
+    const vector<int>& up,
     int up_primary,
-    vector<int>& acting,
+    const vector<int>& acting,
     int acting_primary,
-    pg_history_t& history,
+    const pg_history_t& history,
     pg_interval_map_t& pim,
     bool backfill,
     ObjectStore::Transaction *t);