From 7ca0619db0c4ef28d51271d9f86eb52f9a8ebd96 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Wed, 18 Jul 2007 20:10:10 +0000 Subject: [PATCH] Adds a void * to Page_s so that page implementations can store information with the pages they manage. --- src/stasis/page.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/stasis/page.h b/src/stasis/page.h index c67d7ed..a61aa30 100644 --- a/src/stasis/page.h +++ b/src/stasis/page.h @@ -164,7 +164,12 @@ struct Page_s { */ rwl * loadlatch; - + /** + Page type implementatioms may store whatever they'd like in this + pointer. It persists from each call to pageLoaded() to the + subsequent call to pageFlushed(). + */ + void * impl; }; #define lsn_ptr(page) (((lsn_t*)(&((page)->memAddr[PAGE_SIZE])))-1)