CID 717033 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE)
Passing parameter inst of type entity_inst_t (size 152 bytes) by value.
CID 717034 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE)
Passing parameter inst of type entity_inst_t (size 152 bytes) by value.
CID 717032 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE)
Passing parameter i of type entity_inst_t (size 152 bytes) by value.
Signed-off-by: Sage Weil <sage@inktank.com>
return session_map[w];
return 0;
}
- Session* get_or_add_session(entity_inst_t i) {
+ Session* get_or_add_session(const entity_inst_t& i) {
Session *s;
if (session_map.count(i.name))
s = session_map[i.name];
public:
ESession() : LogEvent(EVENT_SESSION) { }
- ESession(entity_inst_t inst, bool o, version_t v) :
+ ESession(const entity_inst_t& inst, bool o, version_t v) :
LogEvent(EVENT_SESSION),
client_inst(inst),
open(o),
cmapv(v),
inotablev(0) {
}
- ESession(entity_inst_t inst, bool o, version_t v,
+ ESession(const entity_inst_t& inst, bool o, version_t v,
const interval_set<inodeno_t>& i, version_t iv) :
LogEvent(EVENT_SESSION),
client_inst(inst),