mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
Improve confusing variable names
The prototype calls the second argument of pgstat_progress_update_multi_param() "index", and some callers name their local variable that way. But when the surrounding code deals with index relations, this is confusing, and in at least one case shadowed another variable that is referring to an index relation. Adjust those call sites to have clearer local variable naming, similar to existing callers in indexcmds.c.
This commit is contained in:
@@ -486,17 +486,17 @@ _bt_spools_heapscan(Relation heap, Relation index, BTBuildState *buildstate,
|
||||
* values set by table_index_build_scan
|
||||
*/
|
||||
{
|
||||
const int index[] = {
|
||||
const int progress_index[] = {
|
||||
PROGRESS_CREATEIDX_TUPLES_TOTAL,
|
||||
PROGRESS_SCAN_BLOCKS_TOTAL,
|
||||
PROGRESS_SCAN_BLOCKS_DONE
|
||||
};
|
||||
const int64 val[] = {
|
||||
const int64 progress_vals[] = {
|
||||
buildstate->indtuples,
|
||||
0, 0
|
||||
};
|
||||
|
||||
pgstat_progress_update_multi_param(3, index, val);
|
||||
pgstat_progress_update_multi_param(3, progress_index, progress_vals);
|
||||
}
|
||||
|
||||
/* okay, all heap tuples are spooled */
|
||||
|
Reference in New Issue
Block a user