Fix problems in commit c16dc1aca5.

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:
Robert Haas 2016-03-16 13:54:04 -04:00
parent e4b523e5b5
commit bc55cc0b6a
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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.