Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
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()) {
<< " " << 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;
}