Skip to content

Commit

Permalink
Notes about lock factory
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmerrill committed Nov 18, 2019
1 parent 91602f7 commit 36a3544
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion classes/lock_factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function get_lock($resource, $timeout = 10, $maxlifetime = 600) {
self::$factory = lock_config::get_lock_factory('enrol_lmb');
}

// We shouldn't need the prefix, but core poorly defined the API.
// We shouldn't need the prefix, but core poorly defined the API. (Fixed in 3.6.7 abd 3.7.3, can remove later.)
$lock = self::$factory->get_lock('enrol_lmb'.$resource, $timeout, $maxlifetime);

return $lock;
Expand Down
4 changes: 4 additions & 0 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ Things to migrate
* When receiving a new message, like a person, check to see if we need to processes any missed enrollments
* Possibly track if enrolment was successful in DB like old LMB



# Future version
* When 3.7.3 is the lowest supported version, resource can be removed from lock factory (MDL-66935).

0 comments on commit 36a3544

Please sign in to comment.