Skip to content

Commit 7b9fd86

Browse files
committed
INT-16931: Updating deprecation debug messages on OpenLMS code
1 parent 8c44e69 commit 7b9fd86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

classes/lock/redis_lock_factory.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,12 @@ public function supports_auto_release() {
149149
/**
150150
* Supports recursion.
151151
*
152+
* @deprecated since Moodle 3.10.
152153
* @return boolean True if attempting to get 2 locks on the same resource will "stack"
153154
*/
154155
public function supports_recursion() {
156+
debugging('The function supports_recursion() is deprecated, please do not use it anymore.',
157+
DEBUG_DEVELOPER);
155158
return false;
156159
}
157160

@@ -298,11 +301,14 @@ public function release_lock(lock $lock) {
298301
/**
299302
* Extend the timeout on a held lock.
300303
*
304+
* @deprecated since Moodle 3.10.
301305
* @param lock $lock lock obtained from this factory.
302306
* @param int $maxlifetime new max time to hold the lock.
303307
* @return boolean True if the lock was extended.
304308
*/
305309
public function extend_lock(lock $lock, $maxlifetime = 86400) {
310+
debugging('The function extend_lock() is deprecated, please do not use it anymore.',
311+
DEBUG_DEVELOPER);
306312
return false;
307313
}
308314

0 commit comments

Comments
 (0)