]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: constify arg to identify_splits
authorSage Weil <sage@redhat.com>
Mon, 2 Apr 2018 13:43:55 +0000 (08:43 -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 0543215a4c9da21eaf0123ecf73889f6332274e3..93b55afdbfc003a99c0f2b23f0e329d58f9b5b80 100644 (file)
@@ -9468,7 +9468,7 @@ void OSDShard::_wake_pg_slot(
   ++slot->requeue_seq;
 }
 
-void OSDShard::identify_splits(OSDMapRef as_of_osdmap, set<spg_t> *pgids)
+void OSDShard::identify_splits(const OSDMapRef& as_of_osdmap, set<spg_t> *pgids)
 {
   Mutex::Locker l(sdata_op_ordering_lock);
   if (osdmap) {
index 9fd4ddcf07c516bf0b5bcec70577bfe41dc1a21a..f2fab30b0fee575e180e3e056ff13cbcfc37f80c 100644 (file)
@@ -1181,7 +1181,7 @@ struct OSDShard {
 
   void _wake_pg_slot(spg_t pgid, OSDShardPGSlot *slot);
 
-  void identify_splits(OSDMapRef as_of_osdmap, set<spg_t> *pgids);
+  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 register_and_wake_split_child(PG *pg);