Bug fixed: TfixedPageAlloc calls fixedPageInitialize with the wrong arguments.
This commit is contained in:
parent
497790ca9b
commit
5bfcbdb076
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ compensated_function int TpageAlloc(int xid /*, int type */) {
|
||||||
recordid TfixedPageAlloc(int xid, int size) {
|
recordid TfixedPageAlloc(int xid, int size) {
|
||||||
int page = TpageAlloc(xid);
|
int page = TpageAlloc(xid);
|
||||||
Page * p = loadPage(xid, page);
|
Page * p = loadPage(xid, page);
|
||||||
fixedPageInitialize(p , xid, recordsPerPage(size));
|
fixedPageInitialize(p , size, recordsPerPage(size));
|
||||||
byte * tmpMemAddr = alloca(PAGE_SIZE);
|
byte * tmpMemAddr = alloca(PAGE_SIZE);
|
||||||
memcpy(tmpMemAddr, p->memAddr, PAGE_SIZE);
|
memcpy(tmpMemAddr, p->memAddr, PAGE_SIZE);
|
||||||
TpageSet(xid, page, tmpMemAddr);
|
TpageSet(xid, page, tmpMemAddr);
|
||||||
|
|
Loading…
Reference in a new issue