mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-06-02 02:45:48 -04:00
When zmDbDo is called inside a caller-managed transaction (AutoCommit off), max_attempts is 1 and the loop falls through to Error on a 1213 deadlock — which is misleading, because the caller (Event::delete, the zmstats prune+resync TX) has its own outer retry loop that will roll back and succeed. Downgrade to a Debug message in that path; Error is still emitted for non-deadlock failures and for autocommit calls that exhaust their retries.