From f6f442d4da11b39ac529430162d7b8533cc9a803 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 3 Sep 2015 22:01:19 -0400 Subject: [PATCH] osd/ReplicatedPG: ProxyWriteOp::reqid should not be a ref CID 1322778 (#1 of 1): Pointer to local outside scope (RETURN_LOCAL) 1. escape_local_addr: Returning, through this->reqid, the address of stack variable _reqid. 2. return: Returning here. Signed-off-by: Sage Weil --- src/osd/ReplicatedPG.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index 4517e68730eb..31491801ffc0 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -221,7 +221,7 @@ public: bool sent_ack; utime_t mtime; bool canceled; - osd_reqid_t &reqid; + osd_reqid_t reqid; ProxyWriteOp(OpRequestRef _op, hobject_t oid, vector& _ops, osd_reqid_t _reqid) : ctx(NULL), op(_op), soid(oid), -- 2.47.3