|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.53 2002/11/21 06:36:08 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.54 2003/02/23 23:20:52 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -298,9 +298,10 @@ GetOldestXmin(bool allDbs)
|
298 | 298 | * This ensures that the set of transactions seen as "running" by the
|
299 | 299 | * current xact will not change after it takes the snapshot.
|
300 | 300 | *
|
301 |
| - *Also, we compute the current global xmin (oldest xmin across all running |
| 301 | + *We also compute the current global xmin (oldest xmin across all running |
302 | 302 | * transactions) and save it in RecentGlobalXmin. This is the same
|
303 |
| - * computation done by GetOldestXmin(TRUE). |
| 303 | + * computation done by GetOldestXmin(TRUE). The xmin value is also stored |
| 304 | + * into RecentXmin. |
304 | 305 | *----------
|
305 | 306 | */
|
306 | 307 | Snapshot
|
@@ -419,7 +420,9 @@ GetSnapshotData(bool serializable)
|
419 | 420 | if (TransactionIdPrecedes(xmin,globalxmin))
|
420 | 421 | globalxmin=xmin;
|
421 | 422 |
|
| 423 | +/* Update globals for use by VACUUM */ |
422 | 424 | RecentGlobalXmin=globalxmin;
|
| 425 | +RecentXmin=xmin; |
423 | 426 |
|
424 | 427 | snapshot->xmin=xmin;
|
425 | 428 | snapshot->xmax=xmax;
|
|