From 45a59962151e5651351e404b85a28850f9bfae3d Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Tue, 25 Jul 2006 01:05:02 +0000 Subject: [PATCH] Documented subtle hack; TallocPage() really needs a way to set page type at recovery. Currently, this just doesn't happen, since page types are lazily set. Perhaps Talloc() could handle it? --- src/lladd/page/slotted.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lladd/page/slotted.c b/src/lladd/page/slotted.c index 3afb4dc..b85cc5d 100644 --- a/src/lladd/page/slotted.c +++ b/src/lladd/page/slotted.c @@ -559,6 +559,10 @@ recordid slottedPostRalloc(int xid, Page * page, lsn_t lsn, recordid rid) { updating the storefile without first locking any pages that suffer from this problem. + Also, this only works because pages that are of type + BOUNDARY_TAG_PAGE are guaranteed to have their page type + set before recovery calls this function. + */ slottedPageInitialize(page);