]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
messages/MOSDPGLog: pass param by const reference
authorKefu Chai <kchai@redhat.com>
Sun, 3 Mar 2019 16:09:15 +0000 (00:09 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Mar 2019 06:23:07 +0000 (14:23 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/messages/MOSDPGLog.h

index 6c9728ef405b8f9305152755ba208578b497c220..a9a7d2446bd126357b7a559e415ff6180e827395 100644 (file)
@@ -72,7 +72,7 @@ public:
     set_priority(CEPH_MSG_PRIO_HIGH); 
   }
   MOSDPGLog(shard_id_t to, shard_id_t from,
-           version_t mv, pg_info_t& i, epoch_t query_epoch)
+           version_t mv, const pg_info_t& i, epoch_t query_epoch)
     : MessageInstance(MSG_OSD_PG_LOG, HEAD_VERSION, COMPAT_VERSION),
       epoch(mv), query_epoch(query_epoch),
       to(to), from(from),