summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorNoah Misch2020-06-20 08:25:40 +0000
committerNoah Misch2020-06-20 08:25:40 +0000
commitd28ab91e7155353d4377abad5a7d5b0f07450867 (patch)
tree23063f1304e6f6d5816a5452e6f04ab4630a8127 /src/include
parent74b4d78e037c1d4d55fd61f1b58c161e6249dfde (diff)
Remove dead forceSync parameter of XactLogCommitRecord().
The function has been reading global variable forceSyncCommit, mirroring the intent of the caller that passed forceSync=forceSyncCommit. The other caller, RecordTransactionCommitPrepared(), passed false. Since COMMIT PREPARED can't share a transaction with any command, it certainly doesn't share a transaction with a command that sets forceSyncCommit. Reviewed by Michael Paquier. Discussion: https://postgr.es/m/20200617032615.GC2916904@rfd.leadboat.com
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/xact.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/access/xact.h b/src/include/access/xact.h
index 88025b1cc2f..db191879b9d 100644
--- a/src/include/access/xact.h
+++ b/src/include/access/xact.h
@@ -434,7 +434,7 @@ extern XLogRecPtr XactLogCommitRecord(TimestampTz commit_time,
int nsubxacts, TransactionId *subxacts,
int nrels, RelFileNode *rels,
int nmsgs, SharedInvalidationMessage *msgs,
- bool relcacheInval, bool forceSync,
+ bool relcacheInval,
int xactflags,
TransactionId twophase_xid,
const char *twophase_gid);