Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.6.3, 2.7, 2.8
-
Component/s: Backup
-
Testing Instructions:
-
Workaround:
-
Affected Branches:MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
Fixed Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-46079-master -
Pull Master Diff URL:
Description
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.
Attachments
Issue Links
- is duplicated by
-
MDL-48184 Allowed memory size exhausted error when importing a resource with empty file
-
- Closed
-