From: Sage Weil Date: Mon, 28 Nov 2016 19:15:33 +0000 (-0500) Subject: os/bluestore: pass by ref to _collection_list X-Git-Tag: v11.1.0~120^2~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5b7dc9412613be5219e9d6b9d5e748c8caef90a4;p=ceph-ci.git os/bluestore: pass by ref to _collection_list CID 1395617 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE) pass_by_value: Passing parameter end of type ghobject_t (size 144 bytes) by value. pass_by_value: Passing parameter start of type ghobject_t (size 144 bytes) by value. Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index ace6ee33560..57ec5df1501 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -5519,7 +5519,7 @@ int BlueStore::collection_list( } int BlueStore::_collection_list( - Collection* c, ghobject_t start, ghobject_t end, + Collection* c, const ghobject_t& start, const ghobject_t& end, bool sort_bitwise, int max, vector *ls, ghobject_t *pnext) { diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index 64ce2e80249..77dd98a66b6 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -1703,7 +1703,8 @@ private: txc->shared_blobs_written.insert(b->shared_blob); } - int _collection_list(Collection *c, ghobject_t start, ghobject_t end, + int _collection_list( + Collection *c, const ghobject_t& start, const ghobject_t& end, bool sort_bitwise, int max, vector *ls, ghobject_t *next); template