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>
}
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)
{
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>