@@ -72,7 +72,7 @@ typedef struct
72
72
RelFileLocator rlocator ; /* identifies the relation and block */
73
73
ForkNumber forkno ;
74
74
BlockNumber block ;
75
- const char * page ; /* page content */
75
+ const PageData * page ; /* page content */
76
76
uint32 rdata_len ; /* total length of data in rdata chain */
77
77
XLogRecData * rdata_head ; /* head of the chain of data registered with
78
78
* this block */
@@ -138,8 +138,8 @@ static XLogRecData *XLogRecordAssemble(RmgrId rmid, uint8 info,
138
138
XLogRecPtr RedoRecPtr , bool doPageWrites ,
139
139
XLogRecPtr * fpw_lsn , int * num_fpi ,
140
140
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 );
143
143
144
144
/*
145
145
* Begin constructing a WAL record. This must be called before the
@@ -307,7 +307,7 @@ XLogRegisterBuffer(uint8 block_id, Buffer buffer, uint8 flags)
307
307
*/
308
308
void
309
309
XLogRegisterBlock (uint8 block_id , RelFileLocator * rlocator , ForkNumber forknum ,
310
- BlockNumber blknum , const char * page , uint8 flags )
310
+ BlockNumber blknum , const PageData * page , uint8 flags )
311
311
{
312
312
registered_buffer * regbuf ;
313
313
@@ -648,7 +648,7 @@ XLogRecordAssemble(RmgrId rmid, uint8 info,
648
648
649
649
if (include_image )
650
650
{
651
- const char * page = regbuf -> page ;
651
+ const PageData * page = regbuf -> page ;
652
652
uint16 compressed_len = 0 ;
653
653
654
654
/*
@@ -941,13 +941,13 @@ XLogRecordAssemble(RmgrId rmid, uint8 info,
941
941
* the length of compressed block image.
942
942
*/
943
943
static 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 )
946
946
{
947
947
int32 orig_len = BLCKSZ - hole_length ;
948
948
int32 len = -1 ;
949
949
int32 extra_bytes = 0 ;
950
- const char * source ;
950
+ const void * source ;
951
951
PGAlignedBlock tmp ;
952
952
953
953
if (hole_length != 0 )
0 commit comments