Adds consistency checking for page lsn's.

This commit is contained in:
Sears Russell 2007-03-08 07:39:22 +00:00
parent 76cd6b5114
commit 918fb9d375

View file

@ -107,8 +107,8 @@ lsn_t pageReadLSN(const Page * page) {
lsn_t ret; lsn_t ret;
readlock(page->rwlatch, 259); readlock(page->rwlatch, 259);
/* ret = *(long *)(page->memAddr + START_OF_LSN); */
ret = *lsn_ptr(page); ret = *lsn_ptr(page);
assert(ret == page->LSN);
readunlock(page->rwlatch); readunlock(page->rwlatch);
return ret; return ret;