From e57f4016d818d18c532bba1c071068d807a9908b Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Mon, 8 Nov 2021 15:18:11 +0300 Subject: [PATCH] os/bluestore: report amount of loaded collections. Signed-off-by: Igor Fedotov (cherry picked from commit 5737ee44cbdecf5c03024cf98931852c37249a99) --- src/os/bluestore/BlueStore.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index b40a618feb041..cbe76f831715d 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6157,6 +6157,7 @@ int BlueStore::_open_collections() collections_had_errors = false; ceph_assert(coll_map.empty()); KeyValueDB::Iterator it = db->get_iterator(PREFIX_COLL); + size_t load_cnt = 0; for (it->upper_bound(string()); it->valid(); it->next()) { @@ -6180,12 +6181,14 @@ int BlueStore::_open_collections() << " " << c->cnode << dendl; _osr_attach(c.get()); coll_map[cid] = c; - + load_cnt++; } else { derr << __func__ << " unrecognized collection " << it->key() << dendl; collections_had_errors = true; } } + dout(10) << __func__ << " collections loaded: " << load_cnt + << dendl; return 0; } -- 2.39.5