mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-06-02 10:57:10 -04:00
INSERT INTO Event_Summaries_New SELECT * FROM VIEW_Event_Summaries took shared next-key locks on the source Events table (required for STATEMENT binlog correctness under the default REPEATABLE READ). Concurrent DELETE FROM Events deadlocked against those S locks. Switch the procedure to READ COMMITTED so the source-side SELECT runs as a consistent snapshot read with no row locks. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6.5 KiB
6.5 KiB