public function DatabaseLockBackend::release

Implements Drupal\Core\Lock\LockBackedInterface::release().

Overrides LockBackendInterface::release

File

drupal/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 106
Definition of Drupal\Core\Lock\DatabaseLockBackend.

Class

DatabaseLockBackend
Defines the database lock backend. This is the default backend in Drupal.

Namespace

Drupal\Core\Lock

Code

public function release($name) {
  unset($this->locks[$name]);
  db_delete('semaphore')
    ->condition('name', $name)
    ->condition('value', $this
    ->getLockId())
    ->execute();
}