This is always a bug (OSD doesn't try to remove a collection unless it
thinks it is empty), and not seeing it at default debug levels makes it
hard to track down.
Signed-off-by: Sage Weil <sage@redhat.com>
ceph_assert((*c)->exists);
if ((*c)->onode_map.map_any([&](OnodeRef o) {
if (o->exists) {
- dout(10) << __func__ << " " << o->oid << " " << o
- << " exists in onode_map" << dendl;
+ dout(1) << __func__ << " " << o->oid << " " << o
+ << " exists in onode_map" << dendl;
return true;
}
++nonexistent_count;
auto onode = (*c)->onode_map.lookup(*it);
exists = !onode || onode->exists;
if (exists) {
- dout(10) << __func__ << " " << *it
- << " exists in db, "
- << (!onode ? "not present in ram" : "present in ram")
- << dendl;
+ dout(1) << __func__ << " " << *it
+ << " exists in db, "
+ << (!onode ? "not present in ram" : "present in ram")
+ << dendl;
}
}
if (!exists) {