/** * Releases the database-level lock for the Maintenance Priority Engine process. * * @return mixed True if lock was released, a PEAR Error otherwise. */ function releasePriorityLock() { if (empty($this->oLock)) { OA::debug(' - Lock wasn\'t acquired by the same DB connection', PEAR_LOG_ERR); return false; } elseif (!$this->oLock->hasSameId('mpe')) { OA::debug(' - Lock names to not match', PEAR_LOG_ERR); return false; } return $this->oLock->release(); }