cache->_trim();
}
-bool BlueStore::OnodeSpace::map_any(std::function<bool(OnodeRef)> f)
+bool BlueStore::OnodeSpace::map_any(std::function<bool(Onode*)> f)
{
std::lock_guard l(cache->lock);
ldout(cache->cct, 20) << __func__ << dendl;
for (auto& i : onode_map) {
- if (f(i.second)) {
+ if (f(i.second.get())) {
return true;
}
}
while (p != removed_colls.end()) {
CollectionRef c = *p;
dout(10) << __func__ << " " << c << " " << c->cid << dendl;
- if (c->onode_map.map_any([&](OnodeRef o) {
+ if (c->onode_map.map_any([&](Onode* o) {
ceph_assert(!o->exists);
if (o->flushing_count.load()) {
dout(10) << __func__ << " " << c << " " << c->cid << " " << o->oid
}
size_t nonexistent_count = 0;
ceph_assert((*c)->exists);
- if ((*c)->onode_map.map_any([&](OnodeRef o) {
+ if ((*c)->onode_map.map_any([&](Onode* o) {
if (o->exists) {
dout(1) << __func__ << " " << o->oid << " " << o
<< " exists in onode_map" << dendl;
void dump(CephContext *cct);
/// return true if f true for any item
- bool map_any(std::function<bool(OnodeRef)> f);
+ bool map_any(std::function<bool(Onode*)> f);
};
class OpSequencer;