-
Bug
-
Resolution: Fixed
-
Major
-
2.9, 3.0
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_29_STABLE
-
MDL-50408_master -
-
Team Beards Sprint 7
Some code taken from https://github.com/mudrd8mz/moodle-report_overviewstats.git
$logmanger = get_log_manager();
|
$readers = $logmanger->get_readers('\core\log\sql_select_reader');
|
From lib/upgrade.txt
- sql_internal_reader and sql_select_reader interfaces have been deprecated in favour of sql_internal_table_reader
and sql_reader which use iterators to be more memory efficient.
\core\log\sql_select_reader has been deprecated in favour of \core\log\sql_reader.
The problem is that get_readers() now returns an empty array. No deprecation warning telling you to update the code, it doesn't return the old class but it also doesn't give me the new class, just an empty array. So even though the class has been deprecated rather than outright removed the code that uses it is entirely broken without any clue as to why exactly.
- is a regression caused by
-
MDL-48595 Log exports still consume all memory and fail
-
- Closed
-