moodle-tool_objectfs icon indicating copy to clipboard operation
moodle-tool_objectfs copied to clipboard

Fixing lock release error

Open caiovncius opened this issue 2 years ago • 0 comments

In Moodle 3.11.+ we getting this error:

A lock was created but not released at: [dirroot]/admin/tool/objectfs/classes/local/store/object_file_system.php on line 216 Code should look like: $factory = \core\lock\lock_config::get_lock_factory('type'); $lock = $factory->get_lock(50e571f912ea1e8d29ccfeb56a43748b59f24c3d); $lock->release(); // Locks must ALWAYS be released like this.

In my scenario, looks it´s happening when I try access objectfs in interface and cron in same time.

caiovncius avatar Jan 25 '23 15:01 caiovncius