1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

Fix inconsistencies and typos in the tree, take 9

This addresses more issues with code comments, variable names and
unreferenced variables.

Author: Alexander Lakhin
Discussion: https://postgr.es/m/7ab243e0-116d-3e44-d120-76b3df7abefd@gmail.com
This commit is contained in:
Michael Paquier
2019-08-05 12:14:58 +09:00
parent 75506195da
commit 8548ddc61b
80 changed files with 94 additions and 121 deletions

View File

@ -74,7 +74,7 @@ gistkillitems(IndexScanDesc scan)
/*
* Mark all killedItems as dead. We need no additional recheck, because,
* if page was modified, pageLSN must have changed.
* if page was modified, curPageLSN must have changed.
*/
for (i = 0; i < so->numKilled; i++)
{
@ -379,11 +379,11 @@ gistScanPage(IndexScanDesc scan, GISTSearchItem *pageItem, double *myDistances,
/*
* Check if the page was deleted after we saw the downlink. There's
* nothing of interest on a deleted page. Note that we must do this
* after checking the NSN for concurrent splits! It's possible that
* the page originally contained some tuples that are visible to us,
* but was split so that all the visible tuples were moved to another
* page, and then this page was deleted.
* nothing of interest on a deleted page. Note that we must do this after
* checking the NSN for concurrent splits! It's possible that the page
* originally contained some tuples that are visible to us, but was split
* so that all the visible tuples were moved to another page, and then
* this page was deleted.
*/
if (GistPageIsDeleted(page))
{