diff options
author | Fujii Masao <fujii@postgresql.org> | 2021-02-22 18:25:00 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2021-02-22 18:25:00 +0900 |
commit | f05ed5a5cfa55878baa77a1e39d68cb09793b477 (patch) | |
tree | 73906dc108920a54805d6d4cdf92915278cf6963 /src/backend/access/gist/gistxlog.c | |
parent | efbfb642414b61db1567a7a902ace3f307d7564a (diff) | |
download | postgresql-f05ed5a5cfa55878baa77a1e39d68cb09793b477.tar.gz |
Initialize atomic variable waitStart in PGPROC, at postmaster startup.
Commit 46d6e5f567 added the atomic variable "waitStart" into PGPROC struct,
to store the time at which wait for lock acquisition started. Previously
this variable was initialized every time each backend started. Instead,
this commit makes postmaster initialize it at the startup, to ensure that
the variable should be initialized before any use of it.
This commit also moves the code to initialize "waitStart" variable for
prepare transaction, from TwoPhaseGetDummyProc() to MarkAsPreparingGuts().
Because MarkAsPreparingGuts() is more proper place to do that since
it initializes other PGPROC variables.
Author: Fujii Masao
Reviewed-by: Atsushi Torikoshi
Discussion: https://postgr.es/m/1df88660-6f08-cc6e-b7e2-f85296a2bdab@oss.nttdata.com
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions