Unused parameter in ProcessSlotSyncInterrupts()
Started by cca5507about 1 year ago3 messageshackers
Stepping through
Hi,
When reading the code about slot sync, I find the $subject, attach a patch to fix it.
--
Regards,
ChangAo Chen
Attachments:
v1-0001-Remove-unused-parameter-in-ProcessSlotSyncInterru.patchapplication/octet-stream; charset=ISO-8859-1; name=v1-0001-Remove-unused-parameter-in-ProcessSlotSyncInterru.patchDownload+2-3
Re: Unused parameter in ProcessSlotSyncInterrupts()
On Fri, Aug 29, 2025 at 10:40:25PM +0800, cca5507 wrote:
When reading the code about slot sync, I find the $subject, attach a
patch to fix it.
LGTM. I looked through the original thread [0]/messages/by-id/514f6f2f-6833-4539-39f1-96cd1e011f23@enterprisedb.com for clues about the origins
of this parameter, but it's a very long thread, and ctrl+f didn't help. It
seems to have become unused somewhere between v82 and v88 of the patch set,
though. In v82, ProcessSlotSyncInterrupts() has the following code:
+ if (ShutdownRequestPending)
+ {
+ if (wrconn)
+ walrcv_disconnect(wrconn);
+ ereport(LOG,
+ errmsg("replication slot sync worker is shutting down on receiving SIGINT"));
+ proc_exit(0);
+ }
[0]: /messages/by-id/514f6f2f-6833-4539-39f1-96cd1e011f23@enterprisedb.com
--
nathan