diff --git a/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php b/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php index 89d06a5..2024272 100644 --- a/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php +++ b/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php @@ -33,7 +33,6 @@ class DatabaseLockBackend extends LockBackendAbstract { public function __construct(Connection $database) { // __destruct() is causing problems with garbage collections, register a // shutdown function instead. - parent::__construct(); drupal_register_shutdown_function(array($this, 'releaseAll')); $this->database = $database; } diff --git a/core/lib/Drupal/Core/Lock/LockBackendAbstract.php b/core/lib/Drupal/Core/Lock/LockBackendAbstract.php index c9b7c70..1b9e194 100644 --- a/core/lib/Drupal/Core/Lock/LockBackendAbstract.php +++ b/core/lib/Drupal/Core/Lock/LockBackendAbstract.php @@ -29,19 +29,6 @@ protected $locks = array(); /** - * Constructs a new lock backend. - */ - public function __construct() { - // It is vital that an appropriate precision level is set or the process - // that holds the lock and tries to re-acquire it will fail. - - // Ensure a precision value of at least 14. - if (ini_get('precision') < 14) { - throw new \Exception('Precision level less than 14 detected.'); - } - } - - /* * Implements Drupal\Core\Lock\LockBackedInterface::wait(). */ public function wait($name, $delay = 30) { diff --git a/core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php b/core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php index 9cca749..23ff1e3 100644 --- a/core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php +++ b/core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php @@ -27,13 +27,6 @@ protected function setUp() { } /** - * Tests the minimum precision. - */ - public function testMinimumPrecision() { - $this->assertTrue(ini_get('precision') >= 14); - } - - /** * Tests the wait() method when lockMayBeAvailable() returns TRUE. */ public function testWaitFalse() {