Skip to content
Snippets Groups Projects
Commit 7a567d94 authored by Heikki Linnakangas's avatar Heikki Linnakangas
Browse files

MAPSIZE macro needs to use MAXALIGN(SizeOfPageHeaderData) instead of

SizeOfPageHeaderData, like PageGetContents does. Per report by Pavan
Deolasee.
parent b61318d1
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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 * INTERFACE ROUTINES
* visibilitymap_clear - clear a bit in the visibility map * visibilitymap_clear - clear a bit in the visibility map
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
* extra headers, so the whole page minus except for the standard page header * extra headers, so the whole page minus except for the standard page header
* is used for the bitmap. * is used for the bitmap.
*/ */
#define MAPSIZE (BLCKSZ - SizeOfPageHeaderData) #define MAPSIZE (BLCKSZ - MAXALIGN(SizeOfPageHeaderData))
/* Number of bits allocated for each heap block. */ /* Number of bits allocated for each heap block. */
#define BITS_PER_HEAPBLOCK 1 #define BITS_PER_HEAPBLOCK 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment