MAPSIZE macro needs to use MAXALIGN(SizeOfPageHeaderData) instead of

SizeOfPageHeaderData, like PageGetContents does. Per report by Pavan
Deolasee.
This commit is contained in:
Heikki Linnakangas 2008-12-06 17:31:37 +00:00
parent b61318d1b4
commit 7a567d9407
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/heap/visibilitymap.c,v 1.1 2008/12/03 13:05:22 heikki Exp $
* $PostgreSQL: pgsql/src/backend/access/heap/visibilitymap.c,v 1.2 2008/12/06 17:31:37 heikki Exp $
*
* INTERFACE ROUTINES
* visibilitymap_clear - clear a bit in the visibility map
@ -101,7 +101,7 @@
* extra headers, so the whole page minus except for the standard page header
* is used for the bitmap.
*/
#define MAPSIZE (BLCKSZ - SizeOfPageHeaderData)
#define MAPSIZE (BLCKSZ - MAXALIGN(SizeOfPageHeaderData))
/* Number of bits allocated for each heap block. */
#define BITS_PER_HEAPBLOCK 1