mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
Correctly initialize newly added struct member
Valgrind was rightly complaining that IndexVacuumInfo->report_progress (added by commit ab0dfc961b6a) was not being initialized in some code paths. Repair. Per buildfarm member lousyjack.
This commit is contained in:
parent
e8abf97af7
commit
5f768045a1
@ -1717,6 +1717,7 @@ lazy_vacuum_index(Relation indrel,
|
|||||||
|
|
||||||
ivinfo.index = indrel;
|
ivinfo.index = indrel;
|
||||||
ivinfo.analyze_only = false;
|
ivinfo.analyze_only = false;
|
||||||
|
ivinfo.report_progress = false;
|
||||||
ivinfo.estimated_count = true;
|
ivinfo.estimated_count = true;
|
||||||
ivinfo.message_level = elevel;
|
ivinfo.message_level = elevel;
|
||||||
/* We can only provide an approximate value of num_heap_tuples here */
|
/* We can only provide an approximate value of num_heap_tuples here */
|
||||||
@ -1749,6 +1750,7 @@ lazy_cleanup_index(Relation indrel,
|
|||||||
|
|
||||||
ivinfo.index = indrel;
|
ivinfo.index = indrel;
|
||||||
ivinfo.analyze_only = false;
|
ivinfo.analyze_only = false;
|
||||||
|
ivinfo.report_progress = false;
|
||||||
ivinfo.estimated_count = (vacrelstats->tupcount_pages < vacrelstats->rel_pages);
|
ivinfo.estimated_count = (vacrelstats->tupcount_pages < vacrelstats->rel_pages);
|
||||||
ivinfo.message_level = elevel;
|
ivinfo.message_level = elevel;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user