Removed the fixed page initialization operations, which weren't being used, and were a slow hack anyway. There is now a more-general (and efficient)

implementation in alloc.c
This commit is contained in:
Sears Russell 2006-07-29 00:54:01 +00:00
parent cdd44a2f2d
commit 783d1d6ffd

View file

@ -198,7 +198,7 @@ compensated_function int TarrayListLength(int xid, recordid rid) {
return tlp.maxOffset+1; return tlp.maxOffset+1;
} }
static int operateInitFixed(int xid, Page * p, lsn_t lsn, recordid rid, const void * dat) { /*static int operateInitFixed(int xid, Page * p, lsn_t lsn, recordid rid, const void * dat) {
fixedPageInitialize(p, rid.size, recordsPerPage(rid.size)); fixedPageInitialize(p, rid.size, recordsPerPage(rid.size));
pageWriteLSN(xid, p, lsn); pageWriteLSN(xid, p, lsn);
@ -214,8 +214,9 @@ static int operateUnInitPage(int xid, Page * p, lsn_t lsn, recordid rid, const v
Operation getInitFixed() { Operation getInitFixed() {
Operation o = { Operation o = {
OPERATION_INITIALIZE_FIXED_PAGE, OPERATION_INITIALIZE_FIXED_PAGE,
0, /* The necessary parameters are hidden in the rid */ 0, // The necessary parameters are hidden in the rid
/*OPERATION_UNINITIALIZE_PAGE,*/ OPERATION_NOOP, //OPERATION_UNINITIALIZE_PAGE,
OPERATION_NOOP,
&operateInitFixed &operateInitFixed
}; };
return o; return o;
@ -224,11 +225,11 @@ Operation getUnInitPage() {
Operation o = { Operation o = {
OPERATION_UNINITIALIZE_PAGE, OPERATION_UNINITIALIZE_PAGE,
PAGE_SIZE, PAGE_SIZE,
NO_INVERSE_WHOLE_PAGE, /* OPERATION_NOOP,*/ NO_INVERSE_WHOLE_PAGE, //OPERATION_NOOP,
&operateUnInitPage &operateUnInitPage
}; };
return o; return o;
} }*/
/*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/