function TransactionManager::processRootCommit

Same name in other branches
  1. 11.x core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php \Drupal\mysql\Driver\Database\mysql\TransactionManager::processRootCommit()

Overrides TransactionManagerBase::processRootCommit

File

core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php, line 30

Class

TransactionManager
MySql implementation of TransactionManagerInterface.

Namespace

Drupal\mysql\Driver\Database\mysql

Code

protected function processRootCommit() : void {
    if (!$this->connection
        ->getClientConnection()
        ->inTransaction()) {
        $this->voidClientTransaction();
        return;
    }
    parent::processRootCommit();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.