blocking-uring-test
Vitaliy Filippov 2019-11-30 23:56:24 +03:00
parent 00eeedae90
commit 14b2f49f4d
2 changed files with 5 additions and 1 deletions

View File

@ -163,6 +163,10 @@ void blockstore::loop()
{ {
dequeue_op = dequeue_stable(op); dequeue_op = dequeue_stable(op);
} }
else if ((op->flags & OP_TYPE_MASK) == OP_DELETE)
{
// FIXME: Implement DELETE
}
if (dequeue_op) if (dequeue_op)
{ {
submit_queue.erase(op_ptr); submit_queue.erase(op_ptr);

View File

@ -285,7 +285,7 @@ resume_0:
} }
// Also we need to submit the metadata read. We do a read-modify-write for every operation. // Also we need to submit the metadata read. We do a read-modify-write for every operation.
// But we must check if the same sector is already in memory. // But we must check if the same sector is already in memory.
// Another option is to keep all raw metadata in memory all the time. Maybe I'll do it sometime... // Another option is to keep all raw metadata in memory all the time. FIXME: Maybe add this mode.
// And yet another option is to use LSM trees for metadata, but it sophisticates everything a lot, // And yet another option is to use LSM trees for metadata, but it sophisticates everything a lot,
// so I'll avoid it as long as I can. // so I'll avoid it as long as I can.
meta_sector = ((clean_loc >> bs->block_order) / (512 / sizeof(clean_disk_entry))) * 512; meta_sector = ((clean_loc >> bs->block_order) / (512 / sizeof(clean_disk_entry))) * 512;