Files
zoneminder/scripts/ZoneMinder
Isaac Connor 628bcb3e81 fix: don't log Error on deadlock inside a caller-managed transaction
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.
2026-05-16 22:44:14 -04:00
..