From: Adam Kupczyk Date: Mon, 9 Dec 2024 18:49:09 +0000 (+0000) Subject: os/bluestore: Get rid of some Onode constructors X-Git-Tag: v20.3.0~140^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=47e5e7a8f600486f75d7e89ba4665ba42a286779;p=ceph.git os/bluestore: Get rid of some Onode constructors We had 3 constructors that do basically the same. Signed-off-by: Adam Kupczyk --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 02dcdca07c3..b47bb61ef7c 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -4843,7 +4843,7 @@ BlueStore::Onode* BlueStore::Onode::create_decode( 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); diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index f636808ead8..a2cf4705cf6 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -1381,30 +1381,6 @@ public: 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),