From 1bcdb02891c86b412ea6688af5da18e08137ca58 Mon Sep 17 00:00:00 2001 From: Pierre Rineau Date: Tue, 8 May 2012 20:31:28 +0200 Subject: [PATCH] Fixes #1567444 - Wrong exception (PDOException) was in a catch statement instead of DatabaseException - thanks for aspilicious's help --- core/lib/Drupal/Core/Lock/DatabaseLockBackend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php b/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php index 6971d9f4d4e..417edd77911 100644 --- a/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php +++ b/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php @@ -7,7 +7,7 @@ namespace Drupal\Core\Lock; -use PDOException; +use Drupal\Core\Database\DatabaseException; /** * Defines the database lock backend. This is the default backend in Drupal. @@ -53,7 +53,7 @@ class DatabaseLockBackend extends LockBackendAbstract { // We never need to try again. $retry = FALSE; } - catch (PDOException $e) { + catch (DatabaseException $e) { // Suppress the error. If this is our first pass through the loop, // then $retry is FALSE. In this case, the insert must have failed // meaning some other request acquired the lock but did not release it.