protected function CommentStorageController::releaseThreadLock

Release the lock acquired for the thread in preSave().

1 call to CommentStorageController::releaseThreadLock()

File

drupal/core/modules/comment/lib/Drupal/comment/CommentStorageController.php, line 243
Definition of Drupal\comment\CommentStorageController.

Class

CommentStorageController
Defines the controller class for comments.

Namespace

Drupal\comment

Code

protected function releaseThreadLock() {
  if ($this->threadLock) {
    lock()
      ->release($this->threadLock);
    $this->threadLock = '';
  }
}