mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-49740 Lock: Fixed task lock release bugs
This commit is contained in:
parent
1d3fd63f97
commit
894f36abf9
3 changed files with 24 additions and 20 deletions
|
@ -216,7 +216,7 @@ class db_record_lock_factory implements lock_factory {
|
|||
// Called from the shutdown handler. Must release all open locks.
|
||||
foreach ($this->openlocks as $key => $unused) {
|
||||
$lock = new lock($key, $this);
|
||||
$this->release_lock($lock);
|
||||
$lock->release();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -236,7 +236,7 @@ class postgres_lock_factory implements lock_factory {
|
|||
// Called from the shutdown handler. Must release all open locks.
|
||||
foreach ($this->openlocks as $key => $unused) {
|
||||
$lock = new lock($key, $this);
|
||||
$this->release_lock($lock);
|
||||
$lock->release();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue