Use linked list heap in blockstore code

WIP, still slower than the old version :-E
This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:11 +03:00
parent 01ae800d34
commit 6d0460500a
5 changed files with 46 additions and 25 deletions
+2 -2
View File
@@ -244,11 +244,11 @@ void blockstore_impl_t::check_wait(blockstore_op_t *op)
}
else if (PRIV(op)->wait_for == WAIT_COMPACTION)
{
if (heap->get_compact_queue_size() >= PRIV(op)->wait_detail)
if (flusher->get_counter() <= PRIV(op)->wait_detail)
{
// do not submit
#ifdef BLOCKSTORE_DEBUG
printf("Still waiting to reduce compaction queue size below %ju\n", PRIV(op)->wait_detail);
printf("Still waiting for more flushes\n");
#endif
return;
}