]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: report amount of loaded collections. 53135/head
authorIgor Fedotov <ifedotov@suse.com>
Mon, 8 Nov 2021 12:18:11 +0000 (15:18 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Thu, 24 Aug 2023 12:02:46 +0000 (15:02 +0300)
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 5737ee44cbdecf5c03024cf98931852c37249a99)

src/os/bluestore/BlueStore.cc

index b40a618feb0419ce1cb0b70ea496370c6bc7da40..cbe76f831715d0aa04fc874d39d6e3939ccbc852 100644 (file)
@@ -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;
 }