Adds consistency checking for page lsn's.
This commit is contained in:
parent
76cd6b5114
commit
918fb9d375
1 changed files with 1 additions and 1 deletions
|
@ -107,8 +107,8 @@ lsn_t pageReadLSN(const Page * page) {
|
|||
lsn_t ret;
|
||||
|
||||
readlock(page->rwlatch, 259);
|
||||
/* ret = *(long *)(page->memAddr + START_OF_LSN); */
|
||||
ret = *lsn_ptr(page);
|
||||
assert(ret == page->LSN);
|
||||
readunlock(page->rwlatch);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue