catalyst / moodle-tool_lockstats

Moodle cron / task API lock statistics admin tool
https://moodle.org/plugins/tool_lockstats
6 stars 13 forks source link

Optionally use a second db connection when persisting inside an existing transaction #35

Open brendanheywood opened 5 years ago

brendanheywood commented 5 years ago

When updating the lock stats table, inside a transaction which is then rolled back we end up with the stats being rolled back too. In almost all cases we are not inside a transaction, but detect when we are an open a second db connection.

Tasks in order: