MDL-67594 core_lock: Deprecate extend_lock()

This commit is contained in:
Mihail Geshoski
2020-07-06 13:03:08 +08:00
parent 41bc63dbf3
commit 80736a93aa
7 changed files with 23 additions and 0 deletions
@@ -198,11 +198,15 @@ class postgres_lock_factory implements lock_factory {
/**
* Extend a lock that was previously obtained with @lock.
*
* @deprecated since Moodle 4.0.
* @param lock $lock - a lock obtained from this factory.
* @param int $maxlifetime - the new lifetime for the lock (in seconds).
* @return boolean - true if the lock was extended.
*/
public function extend_lock(lock $lock, $maxlifetime = 86400) {
debugging('The function extend_lock() is deprecated, please do not use it anymore.',
DEBUG_DEVELOPER);
// Not supported by this factory.
return false;
}