MDL-67594 core_lock: Deprecate supports_recursion()

This commit is contained in:
Mihail Geshoski
2020-07-06 13:01:16 +08:00
parent 49a9e8b07d
commit 4b71cdcd89
7 changed files with 22 additions and 0 deletions
@@ -119,9 +119,13 @@ class postgres_lock_factory implements lock_factory {
/**
* Multiple locks for the same resource can be held by a single process.
*
* @deprecated since Moodle 4.0.
* @return boolean - Defer to the DB driver.
*/
public function supports_recursion() {
debugging('The function supports_recursion() is deprecated, please do not use it anymore.',
DEBUG_DEVELOPER);
return true;
}