mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Fix comment in snapbuild.c
Author: Masahiko Sawada Discussion: https://postgr.es/m/CAD21AoAmf-PkSnMGAJg2DtGhp7O7vpHoexCxfQLKZg8xrbRwsg@mail.gmail.com
This commit is contained in:
@ -1464,11 +1464,10 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
|
|||||||
/*
|
/*
|
||||||
* c) transition from FULL_SNAPSHOT to CONSISTENT.
|
* c) transition from FULL_SNAPSHOT to CONSISTENT.
|
||||||
*
|
*
|
||||||
* In FULL_SNAPSHOT state (see d) ), and this xl_running_xacts'
|
* In FULL_SNAPSHOT state, and this xl_running_xacts' oldestRunningXid is
|
||||||
* oldestRunningXid is >= than nextXid from when we switched to
|
* >= than nextXid from when we switched to FULL_SNAPSHOT. This means all
|
||||||
* FULL_SNAPSHOT. This means all transactions that are currently in
|
* transactions that are currently in progress have a catalog snapshot,
|
||||||
* progress have a catalog snapshot, and all their changes have been
|
* and all their changes have been collected. Switch to CONSISTENT.
|
||||||
* collected. Switch to CONSISTENT.
|
|
||||||
*/
|
*/
|
||||||
else if (builder->state == SNAPBUILD_FULL_SNAPSHOT &&
|
else if (builder->state == SNAPBUILD_FULL_SNAPSHOT &&
|
||||||
TransactionIdPrecedesOrEquals(builder->next_phase_at,
|
TransactionIdPrecedesOrEquals(builder->next_phase_at,
|
||||||
|
Reference in New Issue
Block a user