]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: report amount of loaded collections.
authorIgor Fedotov <ifedotov@suse.com>
Mon, 8 Nov 2021 12:18:11 +0000 (15:18 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Thu, 2 Dec 2021 22:33:33 +0000 (01:33 +0300)
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
src/os/bluestore/BlueStore.cc

index 309a3af3c8e8530e37e23dd10d90387dc6491cbb..08c849afd6f266e6b581fc1f6f6169a9ace3df4f 100644 (file)
@@ -6535,6 +6535,7 @@ int BlueStore::_open_collections()
   dout(10) << __func__ << dendl;
   collections_had_errors = false;
   KeyValueDB::Iterator it = db->get_iterator(PREFIX_COLL);
+  size_t load_cnt = 0;
   for (it->upper_bound(string());
        it->valid();
        it->next()) {
@@ -6558,12 +6559,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;
 }