Calling getBlock in BlockBuffer constructor 2 is unnecessary
Closed this issue · 1 comments
SaintNerevar commented
The design stipulates that any get/set methods accessing disk blocks must call BlockBuffer::getBufferPtr() which calls getBlock(). So, not calling getBlock() in the constructor simply delays copying the block into the buffer until it is actually needed i.e to access the blocks data.
gokulsreekumar commented
getBlock()
removed andloadBlockAndGetBufferPtr()
function introduced