MMonJoin: avoid large pass by value

CID 717036: Big parameter passed by value (PASS_BY_VALUE)
At (1): Passing parameter a of type entity_addr_t (size 136 bytes) by value.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2012-09-28 07:31:44 -07:00
parent e92b92b2b6
commit cb0d9690a7

View File

@ -27,7 +27,7 @@ class MMonJoin : public PaxosServiceMessage {
entity_addr_t addr;
MMonJoin() : PaxosServiceMessage(MSG_MON_JOIN, 0) {}
MMonJoin(uuid_d &f, string n, entity_addr_t a)
MMonJoin(uuid_d &f, string n, const entity_addr_t& a)
: PaxosServiceMessage(MSG_MON_JOIN, 0),
fsid(f), name(n), addr(a)
{ }