diff --git a/core/DataAccess/ArchiveWriter.php b/core/DataAccess/ArchiveWriter.php
index a3a11a68f5639b9d18d00ba5be3f582d36cc73ef..d3be8a4cceb4009dab0c3f7d9c4085e024002d71 100644
--- a/core/DataAccess/ArchiveWriter.php
+++ b/core/DataAccess/ArchiveWriter.php
@@ -112,6 +112,7 @@ class ArchiveWriter
                 $deadlockInfo = \Piwik\Db::fetchAll("SHOW ENGINE INNODB STATUS");
                 Piwik::log("DEADLOCK INFO: " . print_r($deadlockInfo));
             }
+            throw $ex;
         }
         Db::releaseDbLock($dbLockName);
         $selectIdSql = "SELECT idarchive FROM $numericTable WHERE name = ? LIMIT 1";