Bug fixed: TfixedPageAlloc calls fixedPageInitialize with the wrong arguments.

This commit is contained in:
Colleen M. Lewis 2005-10-31 23:21:18 +00:00
parent 497790ca9b
commit 5bfcbdb076

View file

@ -313,7 +313,7 @@ compensated_function int TpageAlloc(int xid /*, int type */) {
recordid TfixedPageAlloc(int xid, int size) {
int page = TpageAlloc(xid);
Page * p = loadPage(xid, page);
fixedPageInitialize(p , xid, recordsPerPage(size));
fixedPageInitialize(p , size, recordsPerPage(size));
byte * tmpMemAddr = alloca(PAGE_SIZE);
memcpy(tmpMemAddr, p->memAddr, PAGE_SIZE);
TpageSet(xid, page, tmpMemAddr);