model-writtenrun 857 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chao Li reported that canceling one logical-slot creation after another backend completed activation could trigger an assertion or incorrectly clear logical WAL logging, and proposed serializing activation with a shared flag and condition variable in #1.
- Masahiko Sawada confirmed the bug and that serialization fixed it, but preferred avoiding another synchronization mechanism; his replacement patch delegated aborted activation cleanup to the checkpointer and added a regression test in #2.
- Chao accepted the new approach and supplied a revision that fixed pending_disable cleanup, consolidated assignments, moved logging outside the lock, and strengthened the concurrency checks in #3; Masahiko retained the improvements but restored critical-section protection and logging under the lock to preserve log ordering in #4.
- Chao accepted the revised implementation while questioning the logging trade-off, then identified that the cancellation test could match an earlier log entry in #5; Masahiko added a log offset and kept logging under the lock, leaving any contention-driven change for separate work in #6.
- Chao approved the final attachment in #7, and Masahiko announced his intention to commit it in #8.
- Masahiko committed 93a3e6839b from #6, preserving its tests while additionally suppressing deactivation WAL records when activation had never completed, adjusting activation lock placement around the critical section, and refining comments; his confirmation in #9 closes the thread with the fix landed.