switch (op->op) {
case Transaction::OP_RMCOLL:
{
- coll_t cid = i.get_cid(op->cid);
+ const coll_t &cid = i.get_cid(op->cid);
r = _remove_collection(txc, cid, &c);
if (!r)
continue;
case Transaction::OP_MKCOLL:
{
assert(!c);
- coll_t cid = i.get_cid(op->cid);
+ const coll_t &cid = i.get_cid(op->cid);
r = _create_collection(txc, cid, op->split_bits, &c);
if (!r)
continue;
int BlueStore::_create_collection(
TransContext *txc,
- coll_t cid,
+ const coll_t &cid,
unsigned bits,
CollectionRef *c)
{
return r;
}
-int BlueStore::_remove_collection(TransContext *txc, coll_t cid,
+int BlueStore::_remove_collection(TransContext *txc, const coll_t &cid,
CollectionRef *c)
{
dout(15) << __func__ << " " << cid << dendl;
OnodeRef& oldo,
OnodeRef& newo,
const ghobject_t& new_oid);
- int _create_collection(TransContext *txc, coll_t cid, unsigned bits,
- CollectionRef *c);
- int _remove_collection(TransContext *txc, coll_t cid, CollectionRef *c);
+ int _create_collection(TransContext *txc, const coll_t &cid,
+ unsigned bits, CollectionRef *c);
+ int _remove_collection(TransContext *txc, const coll_t &cid,
+ CollectionRef *c);
int _split_collection(TransContext *txc,
CollectionRef& c,
CollectionRef& d,