]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: constify arg to prime_splits
authorSage Weil <sage@redhat.com>
Mon, 2 Apr 2018 13:44:19 +0000 (08:44 -0500)
committerSage Weil <sage@redhat.com>
Wed, 4 Apr 2018 13:26:59 +0000 (08:26 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h

index 93b55afdbfc003a99c0f2b23f0e329d58f9b5b80..fd6ac75aa464d499c67dbe047ac418b3a7f6ad67 100644 (file)
@@ -9485,7 +9485,7 @@ void OSDShard::identify_splits(const OSDMapRef& as_of_osdmap, set<spg_t> *pgids)
   }
 }
 
-void OSDShard::prime_splits(OSDMapRef as_of_osdmap, set<spg_t> *pgids)
+void OSDShard::prime_splits(const OSDMapRef& as_of_osdmap, set<spg_t> *pgids)
 {
   Mutex::Locker l(sdata_op_ordering_lock);
   _prime_splits(pgids);
index f2fab30b0fee575e180e3e056ff13cbcfc37f80c..2023bbd68dcfe9589336fc2f087d1b0563419f3b 100644 (file)
@@ -1183,7 +1183,7 @@ struct OSDShard {
 
   void identify_splits(const OSDMapRef& as_of_osdmap, set<spg_t> *pgids);
   void _prime_splits(set<spg_t> *pgids);
-  void prime_splits(OSDMapRef as_of_osdmap, set<spg_t> *pgids);
+  void prime_splits(const OSDMapRef& as_of_osdmap, set<spg_t> *pgids);
   void register_and_wake_split_child(PG *pg);
   void unprime_split_children(spg_t parent, unsigned old_pg_num);