diff options
author | Amit Kapila <akapila@postgresql.org> | 2021-11-02 08:35:29 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2021-11-02 08:35:29 +0530 |
commit | 71db6459e6e4ef623e98f3b1e3e9fed1bfb0ae3b (patch) | |
tree | 6194a420c627bd423f9bb4f47e35384eef5a539c /src/include/access/xlog.h | |
parent | 43a134f28b350c4b731db9dddf2f53c407a7077f (diff) | |
download | postgresql-71db6459e6e4ef623e98f3b1e3e9fed1bfb0ae3b.tar.gz postgresql-71db6459e6e4ef623e98f3b1e3e9fed1bfb0ae3b.zip |
Replace XLOG_INCLUDE_XID flag with a more localized flag.
Commit 0bead9af484c introduced XLOG_INCLUDE_XID flag to indicate that the
WAL record contains subXID-to-topXID association. It uses that flag later
to mark in CurrentTransactionState that top-xid is logged so that we
should not try to log it again with the next WAL record in the current
subtransaction. However, we can use a localized variable to pass that
information.
In passing, change the related function and variable names to make them
consistent with what the code is actually doing.
Author: Dilip Kumar
Reviewed-by: Alvaro Herrera, Amit Kapila
Discussion: https://postgr.es/m/E1mSoYz-0007Fh-D9@gemulon.postgresql.org
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r-- | src/include/access/xlog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 5e2c94a05ff..c0a560204b4 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -212,7 +212,6 @@ extern bool XLOG_DEBUG; */ #define XLOG_INCLUDE_ORIGIN 0x01 /* include the replication origin */ #define XLOG_MARK_UNIMPORTANT 0x02 /* record not important for durability */ -#define XLOG_INCLUDE_XID 0x04 /* WAL-internal message-passing hack */ /* Checkpoint statistics */ @@ -258,7 +257,8 @@ struct XLogRecData; extern XLogRecPtr XLogInsertRecord(struct XLogRecData *rdata, XLogRecPtr fpw_lsn, uint8 flags, - int num_fpi); + int num_fpi, + bool topxid_included); extern void XLogFlush(XLogRecPtr RecPtr); extern bool XLogBackgroundFlush(void); extern bool XLogNeedsFlush(XLogRecPtr RecPtr); |