Probably wrong arithmetic value in an if statement.
nskostas opened this issue · comments
Kostas Chartomatzis commented
Hi, I think that in the "RC RM_FileHandle::GetNextFreePage(PageNum& pageNum)" function in line https://github.com/junkumar/redbase/blob/master/src/rm_filehandle.cc#L119 ,
the value of "hdr.numPages == 0" should be changed from 0 to 1, because if this is the first time, then the initial value of the number of pages was set from the rm_manager in the CreateFile() function and it was set to 1.