aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xact.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access/transam/xact.c')
-rw-r--r--src/backend/access/transam/xact.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c
index b8764012607..231af52cc92 100644
--- a/src/backend/access/transam/xact.c
+++ b/src/backend/access/transam/xact.c
@@ -1374,12 +1374,6 @@ RecordTransactionCommit(void)
replorigin_session_origin != DoNotReplicateId);
/*
- * Begin commit critical section and insert the commit XLOG record.
- */
- /* Tell bufmgr and smgr to prepare for commit */
- BufmgrCommit();
-
- /*
* Mark ourselves as within our "commit critical section". This
* forces any concurrent checkpoint to wait until we've updated
* pg_xact. Without this, it is possible for the checkpoint to set
@@ -1400,6 +1394,9 @@ RecordTransactionCommit(void)
START_CRIT_SECTION();
MyProc->delayChkptFlags |= DELAY_CHKPT_START;
+ /*
+ * Insert the commit XLOG record.
+ */
XactLogCommitRecord(GetCurrentTransactionStopTimestamp(),
nchildren, children, nrels, rels,
ndroppedstats, droppedstats,
@@ -2536,9 +2533,6 @@ PrepareTransaction(void)
prepared_at = GetCurrentTimestamp();
- /* Tell bufmgr and smgr to prepare for commit */
- BufmgrCommit();
-
/*
* Reserve the GID for this transaction. This could fail if the requested
* GID is invalid or already in use.