CID 717050: Big parameter passed by value (PASS_BY_VALUE)At (1): Passing
parameter i of type entity_inst_t (size 152 bytes) by value.
Signed-off-by: Samuel Just <sam.just@inktank.com>
if (locked) heartbeat_lock.Unlock();
}
-void OSD::send_still_alive(epoch_t epoch, entity_inst_t i)
+void OSD::send_still_alive(epoch_t epoch, const entity_inst_t &i)
{
MOSDFailure *m = new MOSDFailure(monc->get_fsid(), i, 0, epoch);
m->is_failed = false;
void send_failures();
- void send_still_alive(epoch_t epoch, entity_inst_t i);
+ void send_still_alive(epoch_t epoch, const entity_inst_t &i);
// -- pg stats --
Mutex pg_stat_queue_lock;