pgsql: Make sure we only try to free snapshots that have been passed

From: alvherre(at)postgresql(dot)org (Alvaro Herrera)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make sure we only try to free snapshots that have been passed
Date: 2008-07-11 02:10:14
Message-ID: 20080711021014.21C867549FD@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Make sure we only try to free snapshots that have been passed through
CopySnapshot, per Neil Conway. Also add a comment about the assumption in
GetSnapshotData that the argument is statically allocated.

Also, fix some more typos in comments in snapmgr.c.

Modified Files:
--------------
pgsql/src/backend/storage/ipc:
procarray.c (r1.44 -> r1.45)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procarray.c?r1=1.44&r2=1.45)
pgsql/src/backend/utils/time:
snapmgr.c (r1.3 -> r1.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/time/snapmgr.c?r1=1.3&r2=1.4)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2008-07-11 07:02:43 pgsql: Allow binary-coercible types for cast function arguments and
Previous Message Neil Conway 2008-07-11 00:00:29 pgsql: Fix a few typos in comments in snapmgr.c, and sort header