Skip to content

Commit 276db87

Browse files
vacuumlazy.c: prefer the term "cleanup lock".
The term "super-exclusive lock" is an acceptable synonym of "cleanup lock". Even still, switching from one term to the other in the same file is confusing. Standardize on "cleanup lock" within vacuumlazy.c. Per a complaint from Andres Freund.
1 parent 12b5ade commit 276db87

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/access/heap/vacuumlazy.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,8 +1274,8 @@ lazy_scan_heap(LVRelState *vacrel, VacuumParams *params, bool aggressive)
12741274
* By here we definitely have enough dead_tuples space for whatever
12751275
* LP_DEAD tids are on this page, we have the visibility map page set
12761276
* up in case we need to set this page's all_visible/all_frozen bit,
1277-
* and we have a super-exclusive lock. Any tuples on this page are
1278-
* now sure to be "counted" by this VACUUM.
1277+
* and we have a cleanup lock. Any tuples on this page are now sure
1278+
* to be "counted" by this VACUUM.
12791279
*
12801280
* One last piece of preamble needs to take place before we can prune:
12811281
* we need to consider new and empty pages.
@@ -1524,8 +1524,8 @@ lazy_scan_heap(LVRelState *vacrel, VacuumParams *params, bool aggressive)
15241524
}
15251525

15261526
/*
1527-
* Final steps for block: drop super-exclusive lock, record free space
1528-
* in the FSM
1527+
* Final steps for block: drop cleanup lock, record free space in the
1528+
* FSM
15291529
*/
15301530
if (prunestate.has_lpdead_items && vacrel->do_index_vacuuming)
15311531
{
@@ -2377,8 +2377,8 @@ lazy_vacuum_heap_rel(LVRelState *vacrel)
23772377
* lazy_vacuum_heap_page() -- free page's LP_DEAD items listed in the
23782378
* vacrel->dead_tuples array.
23792379
*
2380-
* Caller must have an exclusive buffer lock on the buffer (though a
2381-
* super-exclusive lock is also acceptable).
2380+
* Caller must have an exclusive buffer lock on the buffer (though a full
2381+
* cleanup lock is also acceptable).
23822382
*
23832383
* tupindex is the index in vacrel->dead_tuples of the first dead tuple for
23842384
* this page. We assume the rest follow sequentially. The return value is

0 commit comments

Comments
 (0)