]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
messages/MOSDBoot: pass OSDSuperblock by const ref
authorKefu Chai <kchai@redhat.com>
Sat, 25 Jul 2020 09:22:14 +0000 (17:22 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 Jul 2020 03:29:10 +0000 (11:29 +0800)
MOSDBoot's ctor does not change the parameter, so let's pass by const
reference.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/messages/MOSDBoot.h

index 02a1411dd898a74e93727cca70967c71d20ff734..ecfd61542214f7f65d6f8b8dbdd1b2ce6ea760fd 100644 (file)
@@ -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,