/// Call prior to removing directory
virtual int prep_delete() { return 0; }
- CollectionIndex(const coll_t& collection):
+ explicit CollectionIndex(const coll_t& collection):
- access_lock_name ("CollectionIndex::access_lock::" + collection.to_str()),
- access_lock(access_lock_name.c_str()) {}
+ access_lock("CollectionIndex::access_lock", true, false) {}
/*
* Pre-hash the collection, this collection should map to a PG folder.
return result;
}
- Collection(CephContext *cct)
+ explicit Collection(CephContext *cct)
: cct(cct), use_page_set(cct->_conf->memstore_page_set),
- lock("MemStore::Collection::lock"), exists(true) {}
+ lock("MemStore::Collection::lock", true, false),
+ exists(true) {}
};
typedef Collection::Ref CollectionRef;