MDL-49740 Lock: Fixed task lock release bugs

This commit is contained in:
Brendan Heywood
2015-04-07 13:09:45 +01:00
committed by Dan Poltawski
parent 41fecc5d7f
commit 6d2f958fc5
3 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -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();
}
}