}
ob->last_commit_tid = tid;
-
- if (ob->can_close())
- close_object(ob);
} else {
ldout(cct, 10) << "lock_ack " << *ob
<< " tid " << tid << " obsolete" << dendl;
// is the entire object set now clean and fully committed?
ObjectSet *oset = ob->oset;
- if (ob->can_close())
- close_object(ob);
ob->put();
// is the entire object set now clean?
Object *ob = bh->ob;
bh_remove(ob, bh);
delete bh;
-
- if (ob->can_close()) {
- ldout(cct, 10) << "trim trimming " << *ob << dendl;
- close_object(ob);
- }
}
while (ob_lru.lru_get_size() > max_ob) {
ldout(cct, 10) << "purge " << *ob << dendl;
ob->truncate(0);
-
- if (ob->can_close()) {
- ldout(cct, 10) << "purge closing " << *ob << dendl;
- close_object(ob);
- }
}
}
if (ob->can_close()) {
- ldout(cct, 10) << "trim trimming " << *ob << dendl;
+ ldout(cct, 10) << "release trimming " << *ob << dendl;
close_object(ob);
assert(o_unclean == 0);
return 0;
Object *ob = objects[oset->poolid][soid];
ob->discard(ex.offset, ex.length);
-
- if (ob->can_close()) {
- ldout(cct, 10) << " closing " << *ob << dendl;
- close_object(ob);
- }
}
// did we truncate off dirty data?