mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
pgindent run for 9.6
This commit is contained in:
@@ -813,8 +813,8 @@ btvacuumscan(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
|
||||
|
||||
/*
|
||||
* Check to see if we need to issue one final WAL record for this index,
|
||||
* which may be needed for correctness on a hot standby node when
|
||||
* non-MVCC index scans could take place.
|
||||
* which may be needed for correctness on a hot standby node when non-MVCC
|
||||
* index scans could take place.
|
||||
*
|
||||
* If the WAL is replayed in hot standby, the replay process needs to get
|
||||
* cleanup locks on all index leaf pages, just as we've been doing here.
|
||||
@@ -1025,13 +1025,13 @@ restart:
|
||||
if (ndeletable > 0)
|
||||
{
|
||||
/*
|
||||
* Notice that the issued XLOG_BTREE_VACUUM WAL record includes all
|
||||
* information to the replay code to allow it to get a cleanup lock
|
||||
* on all pages between the previous lastBlockVacuumed and this page.
|
||||
* This ensures that WAL replay locks all leaf pages at some point,
|
||||
* which is important should non-MVCC scans be requested.
|
||||
* This is currently unused on standby, but we record it anyway, so
|
||||
* that the WAL contains the required information.
|
||||
* Notice that the issued XLOG_BTREE_VACUUM WAL record includes
|
||||
* all information to the replay code to allow it to get a cleanup
|
||||
* lock on all pages between the previous lastBlockVacuumed and
|
||||
* this page. This ensures that WAL replay locks all leaf pages at
|
||||
* some point, which is important should non-MVCC scans be
|
||||
* requested. This is currently unused on standby, but we record
|
||||
* it anyway, so that the WAL contains the required information.
|
||||
*
|
||||
* Since we can visit leaf pages out-of-order when recursing,
|
||||
* replay might end up locking such pages an extra time, but it
|
||||
|
Reference in New Issue
Block a user