]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: pass by ref to _collection_list
authorSage Weil <sage@redhat.com>
Mon, 28 Nov 2016 19:15:33 +0000 (14:15 -0500)
committerSage Weil <sage@redhat.com>
Mon, 28 Nov 2016 19:29:12 +0000 (14:29 -0500)
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 <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index ace6ee33560ddb6aa01d6e84ef1eb414990f5ef1..57ec5df1501359eba6071a8be79a3695a824f6d5 100644 (file)
@@ -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<ghobject_t> *ls, ghobject_t *pnext)
 {
index 64ce2e80249ab628fbb961be832887c01c1f357c..77dd98a66b6c1b736afd71f1419b13cd5eb7e664 100644 (file)
@@ -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<ghobject_t> *ls, ghobject_t *next);
 
   template <typename T, typename F>