Make the only caller of removed() not need to call note_modified_object
separately, dropping the unneeded erase() call.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
3ccc436f9f0d4b010db0c2db15822f8ee46f4873)
);
}
txc->t->rmkey(PREFIX_OBJ, o->key.c_str(), o->key.size());
- txc->removed(o);
+ txc->note_removed_object(o);
o->extent_map.clear();
o->onode = bluestore_onode_t();
- txc->note_modified_object(o);
_debug_obj_on_delete(o->oid);
if (!is_gen || maybe_unshared_blobs.empty()) {
// onode itself isn't written, though
modified_objects.insert(o);
}
- void removed(OnodeRef& o) {
+ void note_removed_object(OnodeRef& o) {
onodes.erase(o);
- modified_objects.erase(o);
+ modified_objects.insert(o);
}
void aio_finish(BlueStore *store) override {