Implements Drupal\Core\Lock\LockBackedInterface::releaseAll().
Overrides LockBackendInterface::releaseAll
public function releaseAll($lock_id = NULL) {
// Only attempt to release locks if any were acquired.
if (!empty($this->locks)) {
$this->locks = array();
if (empty($lock_id)) {
$lock_id = $this
->getLockId();
}
db_delete('semaphore')
->condition('value', $lock_id)
->execute();
}
}