From: Danny Al-Gaaf Date: Mon, 10 Mar 2014 17:34:56 +0000 (+0100) Subject: ECSubWrite: pass some parameter by reference X-Git-Tag: v0.79~150^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b6947c033417eb37c42d8b8bb860664c1dc8f6a6;p=ceph.git ECSubWrite: pass some parameter by reference CID 1188143 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE) pass_by_value: Passing parameter stats of type pg_stat_t (size 488 bytes) by value. pass_by_value: Passing parameter t of type ObjectStore::Transaction (size 184 bytes) by value. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/osd/ECMsgTypes.h b/src/osd/ECMsgTypes.h index cadeb254017..2283dbba35b 100644 --- a/src/osd/ECMsgTypes.h +++ b/src/osd/ECMsgTypes.h @@ -37,8 +37,8 @@ struct ECSubWrite { tid_t tid, osd_reqid_t reqid, hobject_t soid, - pg_stat_t stats, - ObjectStore::Transaction t, + const pg_stat_t &stats, + const ObjectStore::Transaction &t, eversion_t at_version, eversion_t trim_to, vector log_entries,