Closed gokulsreekumar closed 1 year ago
The callers of this constructor and the following constructors: RecBuffer :: RecBuffer() (Constructor 1), IndBuffer :: IndBuffer() (Constructor 1), IndInternal :: IndInternal() (Constructor1) and IndLeaf :: IndLeaf() (Constructor 1) should check the value of blockNum
field to verify if the disk block was allocatted succesfully.
Done, Except for the Indexing part changes. ba_insert() method is the only place where constructor 1 of RecBuffer is being called to allocate a new block.
Basic Idea → It is only called when we need more space
blockNum
field and if so return the appropriate error code back from the caller