Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bc55cc0

Browse files
committed
Fix problems in commit c16dc1a.
Vinayak Pokale provided a patch for a copy-and-paste error in a comment. I noticed that I'd use the word "automatically" nearby where I meant to talk about things being "atomic". Rahila Syed spotted a misplaced counter update. Fix all that stuff.
1 parent e4b523e commit bc55cc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/commands/vacuumlazy.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,6 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
12281228

12291229
/* report that everything is scanned and vacuumed */
12301230
pgstat_progress_update_param(PROGRESS_VACUUM_HEAP_BLKS_SCANNED, blkno);
1231-
pgstat_progress_update_param(PROGRESS_VACUUM_HEAP_BLKS_VACUUMED, blkno);
12321231

12331232
pfree(frozen);
12341233

@@ -1287,7 +1286,8 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
12871286
vacrelstats->num_index_scans++;
12881287
}
12891288

1290-
/* report we're now in the cleanup phase */
1289+
/* report all blocks vacuumed; and that we're cleaning up */
1290+
pgstat_progress_update_param(PROGRESS_VACUUM_HEAP_BLKS_VACUUMED, blkno);
12911291
pgstat_progress_update_param(PROGRESS_VACUUM_PHASE,
12921292
PROGRESS_VACUUM_PHASE_INDEX_CLEANUP);
12931293

src/backend/postmaster/pgstat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2903,7 +2903,7 @@ pgstat_progress_update_param(int index, int64 val)
29032903
}
29042904

29052905
/*-----------
2906-
* pgstat_progress_update_params() -
2906+
* pgstat_progress_update_multi_param() -
29072907
*
29082908
* Automatically update multiple members in st_progress_param[] of own backend
29092909
* entry.

0 commit comments

Comments
 (0)