-
Bug
-
Resolution: Fixed
-
Minor
-
2.6.3, 2.7, 2.8
-
MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-46079-master -
-
There is a point in restore (without files) where it queries for all items in the files table which have a certain content hash, even though it actually only uses one item from the resulting array.
In our live system this is running out of memory for a certain case (I presume it's a zero-byte file or something so there are absolutely kajillions of them).
This can be easily fixed by limiting the query to return only one item, unless I'm missing something.
- is duplicated by
-
MDL-48184 Allowed memory size exhausted error when importing a resource with empty file
- Closed