Content-Length: 269794 | pFad | http://github.com/postgrespro/postgres/commit/5f768045a1a25847a3eea59d309e28c8141aed44

60 Correctly initialize newly added struct member · postgrespro/postgres@5f76804 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/5f768045a1a25847a3eea59d309e28c8141aed44

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy