diff --git a/search_api_db/src/Plugin/search_api/backend/Database.php b/search_api_db/src/Plugin/search_api/backend/Database.php index 93c61f9..aa9d707 100644 --- a/search_api_db/src/Plugin/search_api/backend/Database.php +++ b/search_api_db/src/Plugin/search_api/backend/Database.php @@ -1027,7 +1027,7 @@ class Database extends BackendPluginBase { $denormalized_table = $db_info['index_table']; $item_id = $item->getId(); - $txn = $this->database->startTransaction('search_api_db_indexing'); + $transaction = $this->database->startTransaction('search_api_db_indexing'); try { // Remove the item from the denormalized table. @@ -1169,7 +1169,7 @@ class Database extends BackendPluginBase { } } catch (\Exception $e) { - $txn->rollback(); + $transaction->rollback(); throw $e; } }