Skip to content

Commit 5f76804

Browse files
committed
Correctly initialize newly added struct member
Valgrind was rightly complaining that IndexVacuumInfo->report_progress (added by commit ab0dfc9) was not being initialized in some code paths. Repair. Per buildfarm member lousyjack.
1 parent e8abf97 commit 5f76804

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/access/heap/vacuumlazy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,6 +1717,7 @@ lazy_vacuum_index(Relation indrel,
17171717

17181718
ivinfo.index = indrel;
17191719
ivinfo.analyze_only = false;
1720+
ivinfo.report_progress = false;
17201721
ivinfo.estimated_count = true;
17211722
ivinfo.message_level = elevel;
17221723
/* We can only provide an approximate value of num_heap_tuples here */
@@ -1749,6 +1750,7 @@ lazy_cleanup_index(Relation indrel,
17491750

17501751
ivinfo.index = indrel;
17511752
ivinfo.analyze_only = false;
1753+
ivinfo.report_progress = false;
17521754
ivinfo.estimated_count = (vacrelstats->tupcount_pages < vacrelstats->rel_pages);
17531755
ivinfo.message_level = elevel;
17541756

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy