We had 3 constructors that do basically the same.
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
bool allow_empty)
{
ceph_assert(v.length() || allow_empty);
- Onode* on = new Onode(c.get(), oid, key);
+ Onode* on = new Onode(c.get(), oid, (const mempool::bluestore_cache_meta::string)(key));
if (v.length()) {
ExtentMap::ExtentDecoderFull edecoder(on->extent_map);
bluestore_extent_map_inline_shard_prealloc_size),
bc(*this) {
}
- Onode(Collection* c, const ghobject_t& o,
- const std::string& k)
- : c(c),
- oid(o),
- key(k),
- exists(false),
- cached(false),
- extent_map(this,
- c->store->cct->_conf->
- bluestore_extent_map_inline_shard_prealloc_size),
- bc(*this) {
- }
- Onode(Collection* c, const ghobject_t& o,
- const char* k)
- : c(c),
- oid(o),
- key(k),
- exists(false),
- cached(false),
- extent_map(this,
- c->store->cct->_conf->
- bluestore_extent_map_inline_shard_prealloc_size),
- bc(*this) {
- }
Onode(CephContext* cct)
: c(nullptr),
exists(false),