mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-19470 detection of unfinished transactions and transactions interrupted by exceptions
This commit is contained in:
parent
18e8f3ab9e
commit
1fbdf76ddb
2 changed files with 13 additions and 2 deletions
|
@ -278,7 +278,8 @@ abstract class moodle_database {
|
|||
*/
|
||||
public function dispose() {
|
||||
if ($this->intransaction) {
|
||||
error_log('Active database transaction detected when disposing database!'); // probably can not write to console anymore, log problem instead
|
||||
// unfortunately we can not access global $CFG any more and can not print debug
|
||||
error_log('Active database transaction detected when disposing database!');
|
||||
}
|
||||
if ($this->used_for_db_sessions) {
|
||||
// this is needed because we need to save session to db before closing it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue