From: Kefu Chai Date: Sat, 25 Jul 2020 09:22:14 +0000 (+0800) Subject: messages/MOSDBoot: pass OSDSuperblock by const ref X-Git-Tag: wip-pdonnell-testing-20200918.022351~556^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=685b322b3058ebdbaa6a4744b32af1945a234c15;p=ceph-ci.git messages/MOSDBoot: pass OSDSuperblock by const ref MOSDBoot's ctor does not change the parameter, so let's pass by const reference. Signed-off-by: Kefu Chai --- diff --git a/src/messages/MOSDBoot.h b/src/messages/MOSDBoot.h index 02a1411dd89..ecfd6154221 100644 --- a/src/messages/MOSDBoot.h +++ b/src/messages/MOSDBoot.h @@ -38,7 +38,7 @@ private: : PaxosServiceMessage{MSG_OSD_BOOT, 0, HEAD_VERSION, COMPAT_VERSION}, boot_epoch(0), osd_features(0) { } - MOSDBoot(OSDSuperblock& s, epoch_t e, epoch_t be, + MOSDBoot(const OSDSuperblock& s, epoch_t e, epoch_t be, const entity_addrvec_t& hb_back_addr_ref, const entity_addrvec_t& hb_front_addr_ref, const entity_addrvec_t& cluster_addr_ref,