pgsql: Make oldSnapshotControl a pointer to a volatile structure

From: Kevin Grittner <kgrittn(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make oldSnapshotControl a pointer to a volatile structure
Date: 2016-04-11 20:47:03
Message-ID: E1apijf-00080C-TQ@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Kevin Grittner 2016-04-11 21:54:52 pgsql: Use static inline function for BufferGetPage()
Previous Message Peter Eisentraut 2016-04-11 18:45:19 pgsql: Fix whitespace