From 929892fe567f1defdc76344c8d430dce66d41d8a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 24 Aug 2012 19:51:30 -0700 Subject: [PATCH] LogEntry: pass by reference CID 717030: Big parameter passed by value (PASS_BY_VALUE) At (1): Passing parameter w of type entity_inst_t (size 152 bytes) by value. Signed-off-by: Sage Weil --- src/common/LogEntry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/LogEntry.h b/src/common/LogEntry.h index e8509d5a5b11f..67ac9e638340c 100644 --- a/src/common/LogEntry.h +++ b/src/common/LogEntry.h @@ -44,7 +44,7 @@ struct LogEntryKey { uint64_t seq; LogEntryKey() {} - LogEntryKey(entity_inst_t w, utime_t t, uint64_t s) : who(w), stamp(t), seq(s) {} + LogEntryKey(const entity_inst_t& w, utime_t t, uint64_t s) : who(w), stamp(t), seq(s) {} void encode(bufferlist& bl) const; void decode(bufferlist::iterator& bl); -- 2.39.5