stencillogic / db-core

DBMS engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trigger buffer writers when not enough space in buffer left

stencillogic opened this issue · comments

Trigger buffer writers inside BlockMgr::allocate_on_cache when not enough space in buffer left. Wait untill dirty blocks are written
and retry allocation. Repeat until successful.

Implemented: buffer writers wake up every second. If there is not enough space in the buffer, BlockMgr::allocate_on_cache will wait and retry in a loop until it gets free block.