MDL-67095 core_h5p: Prevent synchronous access to save the same h5p

When deploying a new H5P resource we need to ensure that
we don't start deploying the same H5P in another thread
(e.g. for another session/user).
This commit is contained in:
cescobedo 2020-04-02 16:18:12 +02:00
parent 788dfb9c7d
commit e84ce938d9
2 changed files with 16 additions and 2 deletions

View file

@ -137,6 +137,7 @@ $string['licenseV3'] = 'Version 3';
$string['licensee'] = 'Licensee';
$string['licenseextras'] = 'License extras';
$string['licenseversion'] = 'License version';
$string['lockh5pdeploy'] = 'This H5P content cannot be accessed because it is being deployed. Please try again later.';
$string['missingcontentfolder'] = 'A valid content folder is missing';
$string['missingcoreversion'] = 'The system was unable to install the {$a->%component} component from the package, as it requires a newer version of the H5P plugin. This site is currently running version {$a->%current}, whereas the required version is {$a->%required} or higher. Please upgrade and then try again.';
$string['missingdependency'] = 'Missing dependency {$a->@dep} required by {$a->@lib}.';