mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-30 09:26:00 -04:00
A concurrent trigger writer can adjust Event_Summaries between our snapshot SELECTs and the per-monitor UPDATE; the UPDATE then overwrites that adjustment with the older snapshot. Drift is bounded by the zmstats/zmaudit interval and corrected on the next pass, because the incremental triggers continue to maintain ES correctly between resyncs. Locking ES before reading aggregates would invert the canonical lock order and re-introduce the deadlock cycle the resync rewrite eliminated.