vacuumlazy.c: Remove obsolete 'onecall' comment.
authorPeter Geoghegan <pg@bowt.ie>
Sat, 25 Sep 2021 17:22:53 +0000 (10:22 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Sat, 25 Sep 2021 17:22:53 +0000 (10:22 -0700)
Remove obsolete reference to lazy_vacuum()'s onecall argument.  The
function argument was removed by commit 3499df0dee.

Also remove adjoining comment block that introduces the wraparound
failsafe concept.  Talking about the failsafe here no longer makes
sense, since lazy_vacuum() (and related functions) are no longer the
only place where the failsafe might be triggered.  This has been the
case since commit c242baa4a8 taught VACUUM to consider triggering the
failsafe mechanism during its initial heap scan.

src/backend/access/heap/vacuumlazy.c

index 9eaf07649e8fc41aae0460c27d83854574d157eb..05221cc1d6db4ef9b5e39d6bb3b0e2f6b153c680 100644 (file)
@@ -2073,13 +2073,7 @@ retry:
  *
  * We may choose to bypass index vacuuming at this point, though only when the
  * ongoing VACUUM operation will definitely only have one index scan/round of
- * index vacuuming.  Caller indicates whether or not this is such a VACUUM
- * operation using 'onecall' argument.
- *
- * In rare emergencies, the ongoing VACUUM operation can be made to skip both
- * index vacuuming and index cleanup at the point we're called.  This avoids
- * having the whole system refuse to allocate further XIDs/MultiXactIds due to
- * wraparound.
+ * index vacuuming.
  */
 static void
 lazy_vacuum(LVRelState *vacrel)