forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9fafa41
committed
Avoid valgrind complaint about write() of uninitalized bytes.
LogicalTapeFreeze() may write out its first block when it is dirty butnot full, and then immediately read the first block back in from itsBufFile as a BLCKSZ-width block. This can only occur in rare caseswhere very few tuples were written out, which is currently onlypossible with parallel external tuplesorts. To avoid valgrindcomplaints, tell it to treat the tail of logtape.c's buffer asdefined.Commit9da0cc3 exposed this problembut did not create it. LogicalTapeFreeze() has always tended to writeout some amount of garbage bytes, but previously never wrote less thanone block of data in total, so the problem was masked.Per buildfarm members lousyjack and skink.Peter Geoghegan, based on a suggestion from Tom Lane and me. Somecomment revisions by me.1 parent3785f7e commit9fafa41
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
| 89 | + | |
89 | 90 |
| |
90 | 91 |
| |
91 | 92 |
| |
| |||
874 | 875 |
| |
875 | 876 |
| |
876 | 877 |
| |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
877 | 889 |
| |
878 | 890 |
| |
879 | 891 |
| |
|
0 commit comments
Comments
(0)