mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Remove unused NextLogPage macro
Commit 061e7efb1b
did away with its last caller, but neglected to remove
the actual definition.
Author: Andres Freund
This commit is contained in:
parent
925ce77c03
commit
eaa1f7220a
@ -119,17 +119,6 @@ typedef XLogLongPageHeaderData *XLogLongPageHeader;
|
|||||||
#define XLogSegNoOffsetToRecPtr(segno, offset, dest) \
|
#define XLogSegNoOffsetToRecPtr(segno, offset, dest) \
|
||||||
(dest) = (segno) * XLOG_SEG_SIZE + (offset)
|
(dest) = (segno) * XLOG_SEG_SIZE + (offset)
|
||||||
|
|
||||||
/*
|
|
||||||
* Macros for manipulating XLOG pointers
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Align a record pointer to next page */
|
|
||||||
#define NextLogPage(recptr) \
|
|
||||||
do { \
|
|
||||||
if ((recptr) % XLOG_BLCKSZ != 0) \
|
|
||||||
XLByteAdvance(recptr, (XLOG_BLCKSZ - (recptr) % XLOG_BLCKSZ)); \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute ID and segment from an XLogRecPtr.
|
* Compute ID and segment from an XLogRecPtr.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user