@@ -72,7 +72,7 @@ typedef struct
7272 RelFileLocator rlocator ; /* identifies the relation and block */
7373 ForkNumber forkno ;
7474 BlockNumber block ;
75- const char * page ; /* page content */
75+ const PageData * page ; /* page content */
7676 uint32 rdata_len ; /* total length of data in rdata chain */
7777 XLogRecData * rdata_head ; /* head of the chain of data registered with
7878 * this block */
@@ -138,8 +138,8 @@ static XLogRecData *XLogRecordAssemble(RmgrId rmid, uint8 info,
138138 XLogRecPtr RedoRecPtr , bool doPageWrites ,
139139 XLogRecPtr * fpw_lsn , int * num_fpi ,
140140 bool * topxid_included );
141- static bool XLogCompressBackupBlock (const char * page , uint16 hole_offset ,
142- uint16 hole_length , char * dest , uint16 * dlen );
141+ static bool XLogCompressBackupBlock (const PageData * page , uint16 hole_offset ,
142+ uint16 hole_length , void * dest , uint16 * dlen );
143143
144144/*
145145 * Begin constructing a WAL record. This must be called before the
@@ -307,7 +307,7 @@ XLogRegisterBuffer(uint8 block_id, Buffer buffer, uint8 flags)
307307 */
308308void
309309XLogRegisterBlock (uint8 block_id , RelFileLocator * rlocator , ForkNumber forknum ,
310- BlockNumber blknum , const char * page , uint8 flags )
310+ BlockNumber blknum , const PageData * page , uint8 flags )
311311{
312312 registered_buffer * regbuf ;
313313
@@ -648,7 +648,7 @@ XLogRecordAssemble(RmgrId rmid, uint8 info,
648648
649649 if (include_image )
650650 {
651- const char * page = regbuf -> page ;
651+ const PageData * page = regbuf -> page ;
652652 uint16 compressed_len = 0 ;
653653
654654 /*
@@ -941,13 +941,13 @@ XLogRecordAssemble(RmgrId rmid, uint8 info,
941941 * the length of compressed block image.
942942 */
943943static bool
944- XLogCompressBackupBlock (const char * page , uint16 hole_offset , uint16 hole_length ,
945- char * dest , uint16 * dlen )
944+ XLogCompressBackupBlock (const PageData * page , uint16 hole_offset , uint16 hole_length ,
945+ void * dest , uint16 * dlen )
946946{
947947 int32 orig_len = BLCKSZ - hole_length ;
948948 int32 len = -1 ;
949949 int32 extra_bytes = 0 ;
950- const char * source ;
950+ const void * source ;
951951 PGAlignedBlock tmp ;
952952
953953 if (hole_length != 0 )
0 commit comments