OSDN Git Service

Modify PageIsEmpty and PageGetMaxOffsetNumber macros to behave sanely
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 8 Jan 2000 21:59:55 +0000 (21:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 8 Jan 2000 21:59:55 +0000 (21:59 +0000)
commit2515882a0fdbb0064a426621903eb99f425a7575
tree76333737bf0a8755d56b0aa231ce69ca0aa34d81
parentb79e75d66f1b2169ad9552d430f699a4b5c95862
Modify PageIsEmpty and PageGetMaxOffsetNumber macros to behave sanely
if presented an uninitialized (all zeroes) page.  The system no longer
crashes hard if an all-zeroes page is present in a relation.  There seem
to be some boundary conditions where a page will be appended to a relation
and zeroed, but its page header is never initialized; until we can track
down and fix all of those, robustness seems like a good idea.
Also, clean up some obsolete and downright wrong comments.
src/include/storage/bufpage.h