pgsql: Move MarkCurrentTransactionIdLoggedIfAny() out of the critical s - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: Move MarkCurrentTransactionIdLoggedIfAny() out of the critical s
Date
Msg-id E1mhkoT-0004H5-Va@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Move MarkCurrentTransactionIdLoggedIfAny() out of the critical section.

We don't modify any shared state in this function which could cause
problems for any concurrent session. This will make it look similar to the
other updates for the same structure (TransactionState) which avoids
confusion for future readers of code.

Author: Dilip Kumar
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/E1mSoYz-0007Fh-D9@gemulon.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/335397456b7e3f9f619038cb322fbfc9dd649d4f

Modified Files
--------------
src/backend/access/transam/xlog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Replace XLOG_INCLUDE_XID flag with a more localized flag.
Next
From: Fujii Masao
Date:
Subject: pgsql: pgbench: Improve error-handling in pgbench.