pgsql: Move MarkCurrentTransactionIdLoggedIfAny() out of the critical s

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Move MarkCurrentTransactionIdLoggedIfAny() out of the critical s
Дата
Msg-id E1mhkoT-0004H5-Va@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: pgsql: Replace XLOG_INCLUDE_XID flag with a more localized flag.
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: pgbench: Improve error-handling in pgbench.