MDL-67594 core_lock: Deprecate extend_lock()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user