pgsql: Remove dead forceSync parameter of XactLogCommitRecord().
pgsql: Remove dead forceSync parameter of XactLogCommitRecord().
От:
Noah Misch <noah@leadboat.com>
Дата:
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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d28ab91e7155353d4377abad5a7d5b0f07450867 Modified Files -------------- src/backend/access/transam/twophase.c | 2 +- src/backend/access/transam/xact.c | 8 +++++--- src/include/access/xact.h | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-)