aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2021-02-07 10:11:14 -0800
committerPeter Geoghegan <pg@bowt.ie>2021-02-07 10:11:14 -0800
commit617fffee8a6f350ff03069e2843ecd039ea06ccc (patch)
tree23aaafd788ef73bf4be0541975ced8bcf7df6522 /src/backend/access/gist
parentd1d2979852538d7021cc809a40ef127d59747697 (diff)
downloadpostgresql-617fffee8a6f350ff03069e2843ecd039ea06ccc.tar.gz
postgresql-617fffee8a6f350ff03069e2843ecd039ea06ccc.zip
Rename removable xid function for consistency.
GlobalVisIsRemovableFullXid() is now GlobalVisCheckRemovableFullXid(). This is consistent with the general convention for FullTransactionId equivalents of functions that deal with TransactionId values. It now matches the nearby GlobalVisCheckRemovableXid() function, which performs the same check for callers that use TransactionId values. Oversight in commit dc7420c2c92. Discussion: https://postgr.es/m/CAH2-Wzmes12jFNDcVgpU89Vp=r6uLFrE-MT0fjSWGsE70UiNaA@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist')
-rw-r--r--src/backend/access/gist/gistutil.c2
-rw-r--r--src/backend/access/gist/gistxlog.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/gist/gistutil.c b/src/backend/access/gist/gistutil.c
index cf53dad4743..a3ec9f2cfe4 100644
--- a/src/backend/access/gist/gistutil.c
+++ b/src/backend/access/gist/gistutil.c
@@ -914,7 +914,7 @@ gistPageRecyclable(Page page)
*/
FullTransactionId deletexid_full = GistPageGetDeleteXid(page);
- return GlobalVisIsRemovableFullXid(NULL, deletexid_full);
+ return GlobalVisCheckRemovableFullXid(NULL, deletexid_full);
}
return false;
}
diff --git a/src/backend/access/gist/gistxlog.c b/src/backend/access/gist/gistxlog.c
index c1d4b5d4f23..f2eda79bc1a 100644
--- a/src/backend/access/gist/gistxlog.c
+++ b/src/backend/access/gist/gistxlog.c
@@ -388,7 +388,7 @@ gistRedoPageReuse(XLogReaderState *record)
* pages in the index via the FSM. That's all they do though.
*
* latestRemovedXid was the page's deleteXid. The
- * GlobalVisIsRemovableFullXid(deleteXid) test in gistPageRecyclable()
+ * GlobalVisCheckRemovableFullXid(deleteXid) test in gistPageRecyclable()
* conceptually mirrors the PGPROC->xmin > limitXmin test in
* GetConflictingVirtualXIDs(). Consequently, one XID value achieves the
* same exclusion effect on primary and standby.