Ensure BackgroundWorker struct contents are well-defined.
Tom Lane <tgl@sss.pgh.pa.us>
Ensure BackgroundWorker struct contents are well-defined. Coverity complained because bgw.bgw_extra wasn't being filled in by ApplyLauncherRegister(). The most future-proof fix is to memset the whole BackgroundWorker struct to zeroes. While at it, let's apply the same coding rule to other places that set up BackgroundWorker structs; four out of five had the same or related issues.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/parallel.c | modified | +1 −1 |
| src/backend/replication/logical/launcher.c | modified | +6 −0 |
| src/test/modules/test_shm_mq/setup.c | modified | +1 −0 |
| src/test/modules/worker_spi/worker_spi.c | modified | +2 −0 |