redbase icon indicating copy to clipboard operation
redbase copied to clipboard

Probably wrong arithmetic value in an if statement.

Open taki1984 opened this issue 13 years ago • 0 comments

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.

taki1984 avatar Aug 20 '12 15:08 taki1984