diff --git a/core/lib/Drupal/Core/Routing/MatcherDumper.php b/core/lib/Drupal/Core/Routing/MatcherDumper.php index b951d52..94ec3f8 100644 --- a/core/lib/Drupal/Core/Routing/MatcherDumper.php +++ b/core/lib/Drupal/Core/Routing/MatcherDumper.php @@ -119,19 +119,16 @@ public function dump(array $options = array()) { // That avoids stale data. The transaction makes it atomic to avoid // unstable router states due to random failures. $txn = $this->connection->startTransaction(); - + try { $this->connection->delete($this->tableName) ->condition('route_set', $options['route_set']) ->execute(); - $insert->execute(); - // We want to reuse the dumper for multiple route sets, so on dump, flush // the queued routes. $this->routes = NULL; - } - catch (\Exception $e) { + } catch (\Exception $e) { $transaction->rollback(); watchdog_exception('Routing', $e); throw $e;