mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 12:14:36 -05:00
With fast deletes on, deleting an event in the web interface removed only its Events row and left its Frames and Stats rows and its files for zmaudit, and deleting a monitor left all of its events. zmaudit only runs when ZM_RUN_AUDIT is on, and both options default to off independently, so with fast deletes on and the audit off nothing ever removed them and the Frames table grew without bound. In the Perl Event::delete the option also kept zmfilter from removing the files of the events it purged. Remove the option. ZM\Event::delete() always removes the Stats and Frames rows and the files in one transaction with the Events row, ZM\Monitor::destroy() always deletes the monitor's events, and the Perl Event::delete deletes the files unless the storage area has DoDelete off. zmupdate.pl rebuilds the Config table from ConfigData, so the option's row goes away on upgrade without a migration. Drop the option from the docs, from the zmaudit option help, and from the es_la, ro_ro and ru_ru translations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>