diff --git a/classes/local/store/object_file_system.php b/classes/local/store/object_file_system.php index 16f2f210..9b60c92e 100644 --- a/classes/local/store/object_file_system.php +++ b/classes/local/store/object_file_system.php @@ -214,6 +214,7 @@ public function acquire_object_lock($contenthash, $timeout = 0) { $lockfactory = \core\lock\lock_config::get_lock_factory('tool_objectfs_object'); $this->logger->start_timing(); $lock = $lockfactory->get_lock($resource, $timeout); + $lock->release(); $this->logger->end_timing(); $this->logger->log_lock_timing($lock);