mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Fix problems in commit c16dc1aca5e01e6acaadfcf38f5fc964a381dc62.
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.
This commit is contained in:
parent
e4b523e5b5
commit
bc55cc0b6a
@ -1228,7 +1228,6 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
|
||||
|
||||
/* report that everything is scanned and vacuumed */
|
||||
pgstat_progress_update_param(PROGRESS_VACUUM_HEAP_BLKS_SCANNED, blkno);
|
||||
pgstat_progress_update_param(PROGRESS_VACUUM_HEAP_BLKS_VACUUMED, blkno);
|
||||
|
||||
pfree(frozen);
|
||||
|
||||
@ -1287,7 +1286,8 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
|
||||
vacrelstats->num_index_scans++;
|
||||
}
|
||||
|
||||
/* report we're now in the cleanup phase */
|
||||
/* report all blocks vacuumed; and that we're cleaning up */
|
||||
pgstat_progress_update_param(PROGRESS_VACUUM_HEAP_BLKS_VACUUMED, blkno);
|
||||
pgstat_progress_update_param(PROGRESS_VACUUM_PHASE,
|
||||
PROGRESS_VACUUM_PHASE_INDEX_CLEANUP);
|
||||
|
||||
|
@ -2903,7 +2903,7 @@ pgstat_progress_update_param(int index, int64 val)
|
||||
}
|
||||
|
||||
/*-----------
|
||||
* pgstat_progress_update_params() -
|
||||
* pgstat_progress_update_multi_param() -
|
||||
*
|
||||
* Automatically update multiple members in st_progress_param[] of own backend
|
||||
* entry.
|
||||
|
Loading…
x
Reference in New Issue
Block a user