mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
MAPSIZE macro needs to use MAXALIGN(SizeOfPageHeaderData) instead of
SizeOfPageHeaderData, like PageGetContents does. Per report by Pavan Deolasee.
This commit is contained in:
parent
b61318d1b4
commit
7a567d9407
@ -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 @@
|
|||||||
* 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
|
||||||
|
Loading…
Reference in New Issue
Block a user