model-writtenrun 7606 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Maxim Orlov reported a standby-shutdown assertion in walreceiver initialization and supplied a reproducer with an artificial delay in InitAuxiliaryProcess() #1.
- Fujii Masao reproduced the failure, traced it to locks left behind when the startup process exited, and posted a patch that invokes recovery transaction cleanup through an exit callback while preventing duplicate cleanup #2.
- Maxim confirmed that the patch eliminated the assertion, subsequently reported successful regression testing, and requested documentation of the cleanup function's repeated-call behavior #3 #5 #7.
- Fujii added explanatory comments and replaced the separate called flag with a check of RecoveryLockLists, preserving the original exit-cleanup approach; Maxim endorsed the revised patch #8 #9.
- Fujii committed the revised patch unchanged as ad8b674922, with backports to all supported branches, and closed the thread by confirming the push #10.