From: Sage Weil Date: Mon, 20 Feb 2017 19:15:48 +0000 (-0500) Subject: osd/PG: take const refs to pg info where possible X-Git-Tag: v12.0.1~279^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=19c52409e3847e5fefddf414f5b628f1ba5531fc;p=ceph.git osd/PG: take const refs to pg info where possible Signed-off-by: Sage Weil --- diff --git a/src/osd/PG.h b/src/osd/PG.h index fc972d5be501..030cd8a24b37 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -1354,7 +1354,7 @@ public: pg_shard_t from; pg_info_t info; epoch_t msg_epoch; - MInfoRec(pg_shard_t from, pg_info_t &info, epoch_t msg_epoch) : + MInfoRec(pg_shard_t from, const pg_info_t &info, epoch_t msg_epoch) : from(from), info(info), msg_epoch(msg_epoch) {} void print(std::ostream *out) const { *out << "MInfoRec from " << from << " info: " << info; @@ -1375,7 +1375,7 @@ public: pg_shard_t from; pg_notify_t notify; uint64_t features; - MNotifyRec(pg_shard_t from, pg_notify_t ¬ify, uint64_t f) : + MNotifyRec(pg_shard_t from, const pg_notify_t ¬ify, uint64_t f) : from(from), notify(notify), features(f) {} void print(std::ostream *out) const { *out << "MNotifyRec from " << from << " notify: " << notify