From 783d1d6ffd460c00c12b0c4e5fbc350f036853a5 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Sat, 29 Jul 2006 00:54:01 +0000 Subject: [PATCH] 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 --- src/lladd/operations/arrayList.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lladd/operations/arrayList.c b/src/lladd/operations/arrayList.c index c3e22a1..3f29494 100644 --- a/src/lladd/operations/arrayList.c +++ b/src/lladd/operations/arrayList.c @@ -198,7 +198,7 @@ compensated_function int TarrayListLength(int xid, recordid rid) { 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)); 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 o = { OPERATION_INITIALIZE_FIXED_PAGE, - 0, /* The necessary parameters are hidden in the rid */ - /*OPERATION_UNINITIALIZE_PAGE,*/ OPERATION_NOOP, + 0, // The necessary parameters are hidden in the rid + //OPERATION_UNINITIALIZE_PAGE, + OPERATION_NOOP, &operateInitFixed }; return o; @@ -224,11 +225,11 @@ Operation getUnInitPage() { Operation o = { OPERATION_UNINITIALIZE_PAGE, PAGE_SIZE, - NO_INVERSE_WHOLE_PAGE, /* OPERATION_NOOP,*/ + NO_INVERSE_WHOLE_PAGE, //OPERATION_NOOP, &operateUnInitPage }; return o; -} +}*/ /*----------------------------------------------------------------------------*/