Files
zoneminder/scripts
Isaac Connor 0dcd500b7b fix: check SELECT errors in zmstats bucket-prune loop
selectcol_arrayref returns undef on a DB error. The previous code only
checked truthiness of the result before deciding to DELETE, so a transient
SELECT failure would silently skip the prune for that bucket and let the
transaction continue to commit an incomplete state. Capture \$dbh->err()
after the SELECT and bail out the same way the DELETE error path does.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 09:52:08 -04:00
..
2024-11-05 13:12:12 -05:00