From db35bbd352865d21f1debb8a22df38f4f8b2a159 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 2 Apr 2018 08:44:19 -0500 Subject: [PATCH] osd: constify arg to prime_splits Signed-off-by: Sage Weil --- src/osd/OSD.cc | 2 +- src/osd/OSD.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 93b55afdbfc..fd6ac75aa46 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -9485,7 +9485,7 @@ void OSDShard::identify_splits(const OSDMapRef& as_of_osdmap, set *pgids) } } -void OSDShard::prime_splits(OSDMapRef as_of_osdmap, set *pgids) +void OSDShard::prime_splits(const OSDMapRef& as_of_osdmap, set *pgids) { Mutex::Locker l(sdata_op_ordering_lock); _prime_splits(pgids); diff --git a/src/osd/OSD.h b/src/osd/OSD.h index f2fab30b0fe..2023bbd68dc 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -1183,7 +1183,7 @@ struct OSDShard { void identify_splits(const OSDMapRef& as_of_osdmap, set *pgids); void _prime_splits(set *pgids); - void prime_splits(OSDMapRef as_of_osdmap, set *pgids); + void prime_splits(const OSDMapRef& as_of_osdmap, set *pgids); void register_and_wake_split_child(PG *pg); void unprime_split_children(spg_t parent, unsigned old_pg_num); -- 2.47.3