Adds a void * to Page_s so that page implementations can store information with the pages they manage.

This commit is contained in:
Sears Russell 2007-07-18 20:10:10 +00:00
parent 9fd91cffb8
commit 7ca0619db0

View file

@ -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)