You are here

function _ultimate_cron_get_transactional_safe_connection in Ultimate Cron 7.2

Same name and namespace in other branches
  1. 8.2 ultimate_cron.module \_ultimate_cron_get_transactional_safe_connection()

Get transactional safe connection.

Return value

string Connection target.

15 calls to _ultimate_cron_get_transactional_safe_connection()
UltimateCronLock::cleanup in ./ultimate_cron.lock.inc
Cleanup expired locks.
UltimateCronLock::expire in ./ultimate_cron.lock.inc
Release lock if expired.
UltimateCronLock::isLocked in ./ultimate_cron.lock.inc
Check if lock is taken.
UltimateCronLock::isLockedMultiple in ./ultimate_cron.lock.inc
Check multiple locks.
UltimateCronLock::lock in ./ultimate_cron.lock.inc
Acquire lock.

... See full list

File

./ultimate_cron.module, line 1727

Code

function _ultimate_cron_get_transactional_safe_connection() {
  return !variable_get('ultimate_cron_bypass_transactional_safe_connection') && Database::getConnection()
    ->inTransaction() ? 'ultimate_cron' : 'default';
}