mirror of
https://github.com/ceph/ceph
synced 2025-01-31 23:44:10 +00:00
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:
parent
e92b92b2b6
commit
cb0d9690a7
@ -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)
|
||||
{ }
|
||||
|
Loading…
Reference in New Issue
Block a user