pgsql: Make oldSnapshotControl a pointer to a volatile structure - Mailing list pgsql-committers

From Kevin Grittner
Subject pgsql: Make oldSnapshotControl a pointer to a volatile structure
Date
Msg-id E1apijf-00080C-TQ@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make oldSnapshotControl a pointer to a volatile structure

It was incorrectly declared as a volatile pointer to a non-volatile
structure.  Eliminate the OldSnapshotControl struct definition; it
is really not needed.  Pointed out by Tom Lane.

While at it, add OldSnapshotControlData to pgindent's list of
structures.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/80647bf65a03e232c995c0826ef394dad8d685fe

Modified Files
--------------
src/backend/utils/time/snapmgr.c | 8 +++-----
src/tools/pgindent/typedefs.list | 1 +
2 files changed, 4 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Fix whitespace
Next
From: Kevin Grittner
Date:
Subject: pgsql: Use static inline function for BufferGetPage()